In a new SnowLeopard install, I'd like to use homebrew to install PIL. However the recipe installs PIL under cellar instead of in /Library/Python/2.6/site-packages. Is there a way to change the install directory?
Thanks. Kent
In a new SnowLeopard install, I'd like to use homebrew to install PIL. However the recipe installs PIL under cellar instead of in /Library/Python/2.6/site-packages. Is there a way to change the install directory?
Thanks. Kent
Since there seems to be no "accepted" way of installing homebrew eggs into the system site-packages, here is what I ended up doing:
The homebrew install grabs and installs all of PIL's dependencies (especially jpeg). The later easy_install then uses them when compiling PIL for the system site-packages. Freetype support doesn't show up in the "easy-installed" version, but that's fine for my purposes.
As my initial goal was to provide a simple way for a web designer to build a django development environment, having an unused homebrew PIL installed is not really a problem.
Hope this helps someone. Still hoping there's a better answer out there.
It seems that Pillow replaced PIL in homebrew. The new command is:
Instead of installing pip and another PIL, you can just make a symlink
Tested on Lion, on Snow Leopard, you may need to change paths to use /python2.6 /Python/2.6.
As @BarnabasSzabolcs mentioned, newer versions named pillow. an alternative to
brew install Homebrew/python/pillow
ispip install pillow
. You may need to addsudo
, depends on your python environment permissions.p.s. that answer could be fit better as a comment, 14 credits to go...