[wxPython-users] py2app produces HUGE file (more than 100MB)
Christopher Barker
Chris.Barker at noaa.gov
Mon Mar 19 16:19:49 PDT 2007
FWIW, I have just built a fairly minimal wxPython app on OS-X 10.4, with
Universal python 2.5, wxPython2.8.1. I've built it on a PPC machine, and
it's 41.4MB. It zips down to 13MB, which I don't think is so bad for a
Universal app.
I wonder why you're getting those duplicate copies? It looks like I've
got ONE lib for wxPython:
libwx_macud-2.8.0.dylib
which is 20.8MB
However, something is odd, as when I run Python:
>> import wx
>> wx.__version__
'2.8.1.1'
So why did the 2.8.0.dylib get bundled?
Perhaps because it's here:
/usr/local/lib/wxPython-unicode-2.8.1.1/lib/libwx_macud-2.8.0.dylib
should that be 2.8.0 there?
roee shlomo wrote:
> Content of Frameworks (30.1MB total):
> - File: libwx_macud_gizmos-2.8.0.dylib (524KB)
> - File: libwx_macud-2.8.0.dylib (21.8MB)
> - Folder: Python.framework (7.8MB)
> -- Details about Python.framework: Includes the file Versions/2.5/python
> ( 7.8MB) and the folder Versions/2.5/Resources (8KB)
hmm. My Python.framework dir is only 2.6 mb.
> - Folder: lib (71.9MB)
> -- Content of lib: Includes a folder named python2.5 which have a folder
> Config (68KB) and a file site-packages.zip (2MB) and a folder
> lib-dynload (69.9MB).
>
> Content of Resources/lib/python2.5/lib-dynload:
> - Many so files like _AE.so, math.so, codecs_jp.so, unicodedata.so...
> (total size: 10.4MB)
> - *Folder wx (59.4MB)* which includes the following files:
> -- _aui.so (4.6MB)
> - _core.so (11.5MB)
> - _gdi.so (10.8MB)
> - _controls.so (10.4MB)
> - _misc.so (8.4MB)
> - _gizmos.so (5.9MB)
> - _windows.so (7.9MB)
I've got all these, but much smaller:
_controls_.so 2.7 MB
_core_.so 2.8 MB
_gdi_.so 2.1 MB
_misc_.so 2.1 MB
_windows_.so 1.9 MB
roee shlomo wrote:
> Someone with PPC built the app for me (universal build), and he says the
> app size is 47.9MB.
That's more like it. It does look like maybe something wrong is going on
when run on an Intel machine. Can anyone else test this? I may be able
to give it a try, if I can borrow someone's machine for a bit.
This is a good question for the python-mac list.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list