Debug libraries don&#39;t get excluded by &quot;excludes&quot; 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">&lt;<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a>&gt;</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 &quot;can remove the Qt debug files&quot;.<br>
these are ~150MB in my case and the *biggest* part of the problem.<br>
I guess I need to write a &quot;better&quot; 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 &quot;empty&quot; 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>
&gt; check out my tutorial:<br>
&gt; <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>
&gt;<br>
&gt; QtCore/QtGui app zipped should be about 12MB intel-only (22MB if you use<br>
&gt; Universal Qt - thus making universal py2app application)<br>
&gt;<br>
&gt; 2009/6/27 Michael Held &lt;<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a><br>
</div>&gt; &lt;mailto:<a href="mailto:michael.held@bc.biol.ethz.ch">michael.held@bc.biol.ethz.ch</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;<br>
&gt;     hi pyqt,<br>
&gt;<br>
&gt;     I am using PyQt4.5 and py2app 0.3.6 on MacOS 10.5<br>
&gt;<br>
&gt;     &gt; from setuptools import setup<br>
&gt;     &gt;<br>
&gt;     &gt; APP = [&#39;MyApp.py&#39;]<br>
&gt;     &gt; DATA_FILES = []<br>
&gt;     &gt; OPTIONS = {&#39;argv_emulation&#39;: True,<br>
&gt;     &gt;            &#39;includes&#39;: [],<br>
&gt;     &gt;            }<br>
&gt;     &gt;<br>
&gt;     &gt; setup(<br>
&gt;     &gt;     app=APP,<br>
&gt;     &gt;     data_files=DATA_FILES,<br>
&gt;     &gt;     options={&#39;py2app&#39;: OPTIONS},<br>
&gt;     &gt;     setup_requires=[&#39;py2app&#39;],<br>
&gt;     &gt; )<br>
&gt;<br>
&gt;     running this setup.py PyQt4, sip and the Qt framework are detected and<br>
&gt;     the app runs fine,<br>
&gt;<br>
&gt;     *BUT* the app is 200MB (TWOHUNDRET MEGABYTES) big and its doing nothing<br>
&gt;     but opening an empty QFrame.<br>
&gt;     I looked into the app-contents and found a lot of debug stuff for the<br>
&gt;     QtGui/QtCore Frameworks.<br>
&gt;<br>
&gt;     after deleting these files the app was still running fine and only 42MB<br>
&gt;     big (I found a lot of Pyhton libs/packages in there which are not used<br>
&gt;     at all)<br>
&gt;<br>
&gt;     42MB for an &quot;empty program&quot; is ok, since all my scripts will not add<br>
&gt;     much size, but 200MB is just *too big*.<br>
&gt;     it looks like py2app is including a lot of unnecessary stuff...<br>
&gt;     could stackless Python 2.6.2 is the problem?<br>
&gt;<br>
&gt;     thanks a lot for your help!<br>
&gt;     michael<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
</div></div>&gt;     &lt;mailto:<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>&gt;<br>
<div><div></div><div class="h5">&gt;     <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
&gt;<br>
&gt;<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>