[Pythonmac-SIG] Installing PIL
Henning Hraban Ramm
hraban at fiee.net
Thu Mar 18 10:33:10 CET 2010
Ahoi,
since there was no appropriate binary package/egg for Python 2.6 on
OSX 10.4/PPC, I tried to compile from source but did run into some
dependency problems:
PIL took some libs from my MacPorts installation (/opt/local/) that
were incompatible to some it took from the OSX SDKs, and it couldn't
find libraries that were installed with X11 (XQuartz 2.5.0 on x.org
1.7.6).
I just changed the include paths in setup.py, and this order works best for me:
elif sys.platform == "darwin":
add_directory(library_dirs, "/usr/local/lib")
add_directory(library_dirs, "/usr/X11R6/lib/")
add_directory(include_dirs, "/usr/X11R6/include")
add_directory(library_dirs,
"/Developer/SDKs/MacOSX10.4u.sdk/usr/lib")
add_directory(include_dirs,
"/Developer/SDKs/MacOSX10.4u.sdk/usr/include")
add_directory(library_dirs,
"/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib")
add_directory(include_dirs,
"/Developer/SDKs/MacOSX10.3.9.sdk/usr/include")
add_directory(library_dirs, "/opt/local/lib")
add_directory(include_dirs, "/opt/local/include")
HTH someone else.
Greetlings, Hraban
More information about the Pythonmac-SIG
mailing list