[Pythonmac-SIG] PIL and py2app on Leopard

Martin Dunschen zabaione at uk2.net
Tue Apr 8 16:26:22 CEST 2008


PIL stands for "Python Imaging Library". "Image" is the module you 
import to use this library.

In your setup.py you need to make sure that the "Image" module is 
included in building the app. Read the documentation to py2app (or 
py2exe) to find how you can ensure that this module will be included in 
the modules your application depends on: I think you've got to use 
something like this:

setup(
	options=dict(
		py2app=dict(
...
			packages='wx, PIL',
...


in your setup.py file. This says that you want the packages wx and PIL 
(Image module) included in your distribution (the application).

Hope this helps,

Martin


More information about the Pythonmac-SIG mailing list