Debug libraries don't get excluded by "excludes" list so they will have to be removed. Also the package includes everything needed to run it - also some Python components.<br>/Contents/Resources/lib/ 9,5 MB in my case<br>
/Contents/Frameworks/ 24,8 MB<br><br>And it zipps to 12MB<br><br>Note that the resulting binary has some symlinks (in libs for example) and calculating size on Mac OS X will count the symlinked (alias) files in :) So check zipped size :)<br>
<br>If you used Qt with Qt Creator or custom Qt compilation on Intel Mac then you have Intel-only Qt and you will get Intell only App. If you used the Qt DMG without Qt Creator then you got Universal Qt and your app will be universal and DOUBLE size :) (22-24MB Zipped for qtcore/qtgui app).<br>
<br><br><div class="gmail_quote">2009/6/27 Michael Held <span dir="ltr"><<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi piotr,<br>
<div class="im"><br>
thanks a lot for your help!<br>
<br>
</div>aral balkan writes on his page that one "can remove the Qt debug files".<br>
these are ~150MB in my case and the *biggest* part of the problem.<br>
I guess I need to write a "better" Qt4 recipe for pyapp or I have to add<br>
some kind of clean-up step after the execution of py2app...<br>
<br>
furthermore Contents/Resources/lib/python2.6/lib-dynload contains ~14MB<br>
of python packages which are not used by my "empty" script (and I assume<br>
PyQt4 is not using those as well...<br>
<br>
again, I am happy with a 40MB .app file but a 200MB file just to much<br>
overhead.<br>
<br>
does anybody know how to tweak the PyQt4 recipe of py2app? I had a short<br>
look on the code but could not find the right script.<br>
or would it be helpful to work with the latest svn revision instead the<br>
released version 0.3.6?<br>
<br>
cheers<br>
michael<br>
<div class="im"><br>
<br>
<br>
piotr maliński wrote:<br>
> check out my tutorial:<br>
> <a href="http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/" target="_blank">http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/</a><br>
><br>
> QtCore/QtGui app zipped should be about 12MB intel-only (22MB if you use<br>
> Universal Qt - thus making universal py2app application)<br>
><br>
> 2009/6/27 Michael Held <<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a><br>
</div>> <mailto:<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a>>><br>
<div><div></div><div class="h5">><br>
> hi pyqt,<br>
><br>
> I am using PyQt4.5 and py2app 0.3.6 on MacOS 10.5<br>
><br>
> > from setuptools import setup<br>
> ><br>
> > APP = ['MyApp.py']<br>
> > DATA_FILES = []<br>
> > OPTIONS = {'argv_emulation': True,<br>
> > 'includes': [],<br>
> > }<br>
> ><br>
> > setup(<br>
> > app=APP,<br>
> > data_files=DATA_FILES,<br>
> > options={'py2app': OPTIONS},<br>
> > setup_requires=['py2app'],<br>
> > )<br>
><br>
> running this setup.py PyQt4, sip and the Qt framework are detected and<br>
> the app runs fine,<br>
><br>
> *BUT* the app is 200MB (TWOHUNDRET MEGABYTES) big and its doing nothing<br>
> but opening an empty QFrame.<br>
> I looked into the app-contents and found a lot of debug stuff for the<br>
> QtGui/QtCore Frameworks.<br>
><br>
> after deleting these files the app was still running fine and only 42MB<br>
> big (I found a lot of Pyhton libs/packages in there which are not used<br>
> at all)<br>
><br>
> 42MB for an "empty program" is ok, since all my scripts will not add<br>
> much size, but 200MB is just *too big*.<br>
> it looks like py2app is including a lot of unnecessary stuff...<br>
> could stackless Python 2.6.2 is the problem?<br>
><br>
> thanks a lot for your help!<br>
> michael<br>
><br>
> _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
</div></div>> <mailto:<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>><br>
<div><div></div><div class="h5">> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
><br>
><br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br>