[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] py2app generates huge files (200MB)
From:       piotr_maliński <riklaunim () gmail ! com>
Date:       2009-06-26 23:42:28
Message-ID: 1f7f7cf70906261642j6fbbd94na6400015c67f1752 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

check out my tutorial: <a \
href="http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/">http://w \
ww.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 Universal Qt - thus \
making universal py2app application)<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 pyqt,<br>
<br>
I am using PyQt4.5 and py2app 0.3.6 on MacOS 10.5<br>
<br>
&gt; from setuptools import setup<br>
&gt;<br>
&gt; APP = [&#39;MyApp.py&#39;]<br>
&gt; DATA_FILES = []<br>
&gt; OPTIONS = {&#39;argv_emulation&#39;: True,<br>
&gt;            &#39;includes&#39;: [],<br>
&gt;            }<br>
&gt;<br>
&gt; setup(<br>
&gt;     app=APP,<br>
&gt;     data_files=DATA_FILES,<br>
&gt;     options={&#39;py2app&#39;: OPTIONS},<br>
&gt;     setup_requires=[&#39;py2app&#39;],<br>
&gt; )<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 &quot;empty program&quot; 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> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic