EDIT: These packages work a treat:
Sometimes OSX could learn a trick from Linux; a great example is package management.
Mac ports isn’t bad but it’s not a patch on archlinux’s AUR for simplicity, and Ubuntu is onto a really good thing with APT.
Installing Python Imaging (PIL) with Jpeg support on Snow Leopard isn’t obvious. For anyone struggling with it, here’s a solution:
1. Download the source from http://libjpeg.sourceforge.net/
2. Extract, configure, make:
tar zxvf jpegsrc.v6b.tar.gz
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .
./configure --enable-shared --enable-static
3. You may need to create the following directories:
sudo mkdir -p /usr/local/include
sudo mkdir -p /usr/local/lib
sudo mkdir -p /usr/local/man/man1
4. Now you can install it as usual.
sudo make install
5. If you want to freetype support, do that now.
6. Finally, you can install PIL. Be sure to activate any vitualenv now if you don’t want to install PIL into the system site-packages.
pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz
At least the native Python 2.6 on Snow Leopard works great, and this wasn’t nearly as painfull as installing PIL on Cygwin!