[PyQt] sip and deployment

Yao Ko koyao at raptr.com
Mon Sep 27 19:28:16 BST 2010


On Mon, Sep 27, 2010 at 11:06 AM, Lic. José M. Rodriguez Bacallao
<jmrbcu at gmail.com> wrote:
> hi folks, just a little question, if SIP is the binding generator of
> PyQt4, is necesary to have it installed for a PyQt4 application to
> run?, can I get rid of it?

You can try to run "python -v", then "from PyQt4 import QtCore" to see
if sip.so is being loaded or not.  It loads on my Mac install:

>>> from PyQt4 import QtCore
dlopen("/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so",
2);
dlopen("/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sip.so",
2);
import sip # dynamically loaded from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sip.so
import PyQt4.QtCore # dynamically loaded from
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so

so I think SIP is needed.

Yao


More information about the PyQt mailing list