[Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

João Vale joao.vale at ndrive.com
Mon Mar 12 19:34:24 CET 2012


I run this command in my setup.py after the .app is generated, and it's
been serving me well:

ditto --rsrc --arch i386 file.app new_file.app

Cheers,
João Vale
*
*
*
*

On Mon, Mar 12, 2012 at 3:59 PM, Carlos Grohmann
<carlos.grohmann at gmail.com>wrote:

> Can I build for only one (i386) architecture?
>
> cheers
>
> Carlos
>
>
>
> On Sat, Mar 10, 2012 at 14:03, Ronald Oussoren <ronaldoussoren at mac.com>wrote:
>
>>
>> On 10 Mar, 2012, at 8:47, Ronald Oussoren wrote:
>>
>> > With this the application bundle already shrinks a little (curently 123
>> MByte, before I started it was about 160 MByte). About 70 Mbyte of this is
>> wx itself (the wxWidgets library and wxPython extensions). Another 21 MByte
>> is because all of numpy is included, not just the bits that are actually
>> needed. That's because of another py2app recipe which can hopefully be
>> improved.
>>
>> BTW. The size of the binaries is at least partially due to the support
>> for multiple architectures, the python installer contains support for two
>> architectures and wx even includes support for 3 different architectures.
>>
>> Ronald
>>
>>
>
>
> --
> Prof. Carlos Henrique Grohmann - Geologist D.Sc.
> Institute of Geosciences - Univ. of São Paulo, Brazil
> ---
> http://www.igc.usp.br/pessoais/guano
> http://digitalelevation.wordpress.com/
> http://lattes.cnpq.br/5846052449613692 (CV)
> ---
> Twitter: @CarlosGrohmann
> http://carlosgrohmann.tumblr.com/
> ________________
> Can’t stop the signal.
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120312/0fba621d/attachment.html>


More information about the Pythonmac-SIG mailing list