>>> 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',
>>> ],
>>
>> Some of those (the shorter names) are symlinks to the
others. Make
>> sure that py2app is copying them that way, and not as whole new
>> copies of the
>> linked-to file.
>
> Nice catch. Sure enough, I seem to be getting copies of
the file, not
> symlinks. It's costing me almost 25 MB extra. Now I just have to
> figure
> out how to get py2app to copy them as symlinks....
Having mucked around with these sort of issues before, I
think you're
better off copying the symlinks in after you've built the py2app
bundle. (e.g. have a build-app Python or bash script that
runs py2app
and modifies the results)However, are you sure you need both the actual library and the
symlink? I don't think wxPython references both the 2.8.0 and the
2.8.0.0.0 files, so if I'm right about that, you should only
need one
of them.
Kevin and Robin,
You were right, I didn't even need the symlinks. Changing the spec to:
libs = [
wxPythonLib + 'libwx_macud-2.8.0.0.0.dylib',
wxPythonLib + 'libwx_macud_gizmos-2.8.0.0.0.dylib',
wxPythonLib + 'libwx_macud_stc-2.8.0.0.0.dylib',
],
reduced my PPC build from 47 MB to 32 MB and my Intel build from 89 MB to 75
MB.
Thanks for the pointers.
David