py2app produces HUGE file (more than 100MB)

Hi David,

Thank you for the info,

Do you think bulding both universal and PPC with 10.3 will all cases?

Would it work well with 10.4?

···

On 3/13/07, David Woods <dwoods@wcer.wisc.edu > wrote:

On 3/13/07, roee shlomo < > roee88@gmail.com> wrote:

I’m glad to hear it’s not a limit of py2app, thanks.

The content of the app is:

  • Folder: MacOS (188KB)
  • Folder: Frameworks (30.1MB)
  • Folder: Resources (72.2MB)
  • File: info.plist (4KB)
  • File: PkgInfo (4KB)

The big folders are Frameworks and Resources so I will be more specific

about them:

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)

Content of Resources (
72.2MB total):

  • boot.py, error.sh, site.py (20KB)
  • My application resources like icons (292KB)
  • 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)

That would be all.
As you can see the wx folder alone is ~60MB.
Please let me know if you see anything unusual.

Those are enormous dll sizes, all of them. The only thing I can think

is that they are all unstripped universal binaries or something.

I don’t do a lot of Mac development, maybe gigantic shared libs are
the norm there?

My OS X 10.4 / “Universal”* release is twice the size (
89.1 MB) as my OS X
10.3 / PPC release ( 47.0 MB), which in turn is almost 5 times larger than my
Windows release (10.2 MB). My Mac app-building script is a little selective
in which parts of wxPython I need to includes, with the following buildapp

parameter:

libs = [
wxPythonLib + ‘libwx_macud-2.8.0.dylib’,
wxPythonLib + ‘libwx_macud-2.8.0.0.0.dylib’,
wxPythonLib + 'libwx_macud_gizmos-2.8.0.dylib
',
wxPythonLib + ‘libwx_macud_gizmos-2.8.0.0.0.dylib’,
wxPythonLib + ‘libwx_macud_stc-2.8.0.dylib’,
wxPythonLib + ‘libwx_macud_stc-2.8.0.0.0.dylib’,

      ],

David Woods
http://www.transana.org

*(For reasons I don’t completely understand having to do with MySQL

connectivity, OS X 10.4 users with PPC chips need my 10.3 PPC release rather
than my 10.4 Universal release. I know that’s off topic. I bring it up
primarily to suggest that more testing is necessary than you might think on

the Mac around issues of chip set and OS version.)


To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org