Joined: 22 Aug 2006
|Posted: Sat Mar 24, 2012 3:50 am Post subject: PIL for python 3.2
I found unofficial source for PIL on python 3.2 at http://www.lfd.uci.edu/~gohlke/pythonlibs . When I try to build it, it seems that it can't find libraries like tkInter, zlib, or freetype2. When I step through setup.py using pdb, it turns out that the library extension it is looking for is cpython-32.so, not .so. For example, in setup.py:
find_library_file(self, "tcl" + version):
feature.tcl = "tcl"+TCL_VERSION
self is: <__main__.pil_build_ext object at 0xf44510>
def find_library_file(self, library):
return self.compiler.find_library_file(self.compiler.library_dirs, library)
self.compiler is <distutils.unixccompiler.UnixCCompiler object at 0xfc5410>
library is: 'tcl8.5'
when I check the shared_lib_extension it returns '.cpython-32.so' - not '.so'
I can't figure out how the extensions are determined. When I start a python session and import distutils and check the UnixCCompiler shared library extensions, it returns .so
I can't find any environment variables the specify cpython-32 nor can I find any reference to cpyhton-32 when I grep the code. Does anyone know why the extensions would be different when running the script vs just a regular session? Thanks!