[PyQt] Deploying a PyQt4 application on Windows using py2exe

Curzio Basso curzio.basso at disi.unige.it
Fri Mar 23 08:56:57 GMT 2007


2007/3/23, Luper Rouch <luper.rouch at gmail.com>:
> Tony Cappellini a écrit :
> > from distutils.core import setup
> > import py2exe
> >
> > setup(windows=[{"script":"main.pyw"}], options={"py2exe":
> > {"includes":["sip"]}} )
> >
> > python setup.py py2exe
> >
> Well all I can say is that an equivalent setup works for me, with these
> versions :
> python-2.5
> py2exe-0.6.5
> PyQt-4.1.1
> qt-4.2.3
>
> I looked into library.zip, QtCore.pyc and QtGui.pyc are also ~500
> bytes... I don't think your problem is related to PyQt :-)

might be the way it is imported? what happens using

from PyQt4 import QtCore

rather than

from PyQt4.QtCore import *

Just wondering, I never understood the mechanics of import...

q.



More information about the PyQt mailing list