Skip to content

Instantly share code, notes, and snippets.

@philipsahli
Created October 12, 2011 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipsahli/1280254 to your computer and use it in GitHub Desktop.
Save philipsahli/1280254 to your computer and use it in GitHub Desktop.
Imaging installation under ubuntu needs a patch
# Usage:
# wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
# tar -zxvf Imaging-1.1.7.tar.gz
# cd Imaging-1.1.7
# patch -p1 -i ../patch
# # continue with installation
Only in Imaging-1.1.7-patched: build
Only in Imaging-1.1.7-patched: patch
diff -crB Imaging-1.1.7/setup.py Imaging-1.1.7-patched/setup.py
*** Imaging-1.1.7/setup.py 2009-11-15 17:06:10.000000000 +0100
--- Imaging-1.1.7-patched/setup.py 2011-10-12 06:28:08.139993199 +0200
***************
*** 37,43 ****
JPEG_ROOT = None
ZLIB_ROOT = None
TIFF_ROOT = None
! FREETYPE_ROOT = None
LCMS_ROOT = None
# FIXME: add mechanism to explicitly *disable* the use of a library
--- 37,43 ----
JPEG_ROOT = None
ZLIB_ROOT = None
TIFF_ROOT = None
! FREETYPE_ROOT = ("/usr/lib/x86_64-linux-gnu", "/usr/include/freetype2/freetype")
LCMS_ROOT = None
# FIXME: add mechanism to explicitly *disable* the use of a library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment