Skip to content

Instantly share code, notes, and snippets.

@laychopy
Forked from douglasmiranda/gist:1973844
Created January 25, 2013 23:54
Show Gist options
  • Save laychopy/4638980 to your computer and use it in GitHub Desktop.
Save laychopy/4638980 to your computer and use it in GitHub Desktop.
# Download
wget http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
tar zxf PIL-1.1.7.tar.gz
cd PIL-1.1.7
# Edit setup file
vim setup.py
# Set the following variables
JPEG_ROOT = '/usr/lib64','/usr/include'
ZLIB_ROOT = '/lib64','/usr/include'
# build PIL
python2.7 setup.py build_ext -i
# Tah-dah
# --- PIL CORE support ok
# --- TKINTER support ok
# --- JPEG support ok
# --- ZLIB (PNG/ZIP) support ok
# --- FREETYPE2 support ok
# --- LITTLECMS support ok
# If you want to be sure, just run the tests
python2.7 selftest.py
# Install
python2.7 setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment