[PyQt] py2app generates huge files (200MB)
piotr maliński
riklaunim at gmail.com
Sat Jun 27 00:42:28 BST 2009
check out my tutorial:
http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/
QtCore/QtGui app zipped should be about 12MB intel-only (22MB if you use
Universal Qt - thus making universal py2app application)
2009/6/27 Michael Held <michael.held at bc.biol.ethz.ch>
> hi pyqt,
>
> I am using PyQt4.5 and py2app 0.3.6 on MacOS 10.5
>
> > from setuptools import setup
> >
> > APP = ['MyApp.py']
> > DATA_FILES = []
> > OPTIONS = {'argv_emulation': True,
> > 'includes': [],
> > }
> >
> > setup(
> > app=APP,
> > data_files=DATA_FILES,
> > options={'py2app': OPTIONS},
> > setup_requires=['py2app'],
> > )
>
> running this setup.py PyQt4, sip and the Qt framework are detected and
> the app runs fine,
>
> *BUT* the app is 200MB (TWOHUNDRET MEGABYTES) big and its doing nothing
> but opening an empty QFrame.
> I looked into the app-contents and found a lot of debug stuff for the
> QtGui/QtCore Frameworks.
>
> after deleting these files the app was still running fine and only 42MB
> big (I found a lot of Pyhton libs/packages in there which are not used
> at all)
>
> 42MB for an "empty program" is ok, since all my scripts will not add
> much size, but 200MB is just *too big*.
> it looks like py2app is including a lot of unnecessary stuff...
> could stackless Python 2.6.2 is the problem?
>
> thanks a lot for your help!
> michael
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090627/595017a7/attachment.html
More information about the PyQt
mailing list