How to modify Qt/PyQt install on OSX
Question: After hours of QT/PyQt compiling and tedious installation there is new
`./PyQt4/` sub-folder under `/Library/Python/2.7/site-packages/`.

Since I don't want to run the same compilation/installation process on every
mac machine I thought I just would copy/paste that '`PyQt4` folder and import
it using:

    
    
    import sys
    sys.path.append('/Library/Python/2.7/site-packages/PyQt4')
    from PyQt4 import QtCore, QtGui
    

But I am getting a following `ImportError`:

    
    
    ImportError: dlopen(/Library/Python/2.7/site-packages/PyQt4/_qt.so, 2): Library not loaded: QtDesigner.framework/Versions/4/QtDesigner
      Referenced from: /Library/Python/2.7/site-packages/PyQt4/_qt.so
      Reason: image not found
    

Apparently it looks for some additional files. Where what are they?


Answer: The `.so` files are [shared
objects](http://en.wikipedia.org/wiki/Library_\(computing\)#Shared_libraries)
there were created when you compiled PyQT on the system. Qt references these
files at runtime.

That said, linking these files might be more trouble than just documenting and
scripting your install process.

