Re: py2app & pillow

Ronald Oussoren <[email protected]>
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
On 13 Jun 2014, at 21:45, Karsten Wolf <[email protected]> wrote:

> Hi,
> 
> in an py2app app I replaced the thumbnail mechanism from sips (via os.system) to Pillow. The resulting app size went from 11MB to 50 MB for the inclusion of the complete TCL/TK stuff.
> 
> Is there an easy way to reduce that?
> 
> Both, Python 2.7.6 and Pillow are compiled for intel 32bit on OSX10.6

The quickest way is to explicitly exclude Tkinter using a py2app option.  You can also create a Pillow recipe based on the PIL one (in py2app.recipes.PIL), or update the PIL one when Pillow is imported the same way as PIL.

Ronald

> 
> 
> -karsten
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.