PIL's setup.py script (which uses Python's standard "distutils" build mechanisms) work the same was as the venerable "make" utility (1); that is, if a target exists and is newer than the source files, it's assumed to be correct. This is great when you change only a few source files, but less great when you change the configuration but not the source...
Distutils provides a "clean" command that removes old stuff, and there's also a --force option to install that's supposed to force a full rebuild. Looks like neither of these are explained in the generic Python "installing python modules" documentation (2), so I guess I should add something to the README about this. </F> 1) http://en.wikipedia.org/wiki/Make_(software) 2) http://docs.python.org/install/index.html On Sat, May 22, 2010 at 12:29 AM, Mark Twenhafel <chollap...@gmail.com> wrote: > Hi-- > > I just wanted to close out this thread, for the benefit of anyone reading > the archives in the future. > > The problem was solved by following Chris Barker's advice/observation that > the files "site-packages/PIL/_imaging*.so" needed to be deleted and then the > PIL package rebuilt. That is exactly what I did, and PIL is now working. > The wildcard "_imaging*.so" matched the four shared-object files seen in the > listing, shown in my earlier post. I deleted those four files and then > rebuilt them by executing "python setup.py install" in the Imaging-1.1.7 > directory. > > Apparently, the install script doesn't delete these files if they already > exist; unfortunately, they had been linked to a version of libjpeg that > didn't work on my box. Deleting and rebuilding the four "_imaging*.so" > files allowed the new shared-object files to link to the new version of > libjpeg that I had installed, which *does* work on my box. > > Thanks to Chris, and to Fredrik for his earlier assistance. Hope I haven't > clogged up too much bandwidth with my novice-level approach. > > Mark T. > > _______________________________________________ > Image-SIG maillist - image-...@python.org > http://mail.python.org/mailman/listinfo/image-sig > > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig