1 From 07d4f095a9e22ae676a8d68073101131e65012dc Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Tue, 15 Nov 2011 13:16:54 +0100
4 Subject: [PATCH] python imaging setup.py: force paths for zlib, freetype and jpeg and don't add host paths
6 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
8 Upstream-Status: Inappropriate [embedded specific]
10 setup.py | 14 +++-----------
11 1 files changed, 3 insertions(+), 11 deletions(-)
13 diff --git a/setup.py b/setup.py
14 index 5d4d53a..b1a22ec 100644
17 @@ -34,10 +34,10 @@ def libinclude(root):
18 # TIFF_ROOT = libinclude("/opt/tiff")
23 +JPEG_ROOT = os.environ['STAGING_LIBDIR']
24 +ZLIB_ROOT = os.environ['STAGING_LIBDIR']
27 +FREETYPE_ROOT = os.environ['STAGING_LIBDIR'], os.environ['STAGING_INCDIR']
30 # FIXME: add mechanism to explicitly *disable* the use of a library
31 @@ -147,7 +147,6 @@ class pil_build_ext(build_ext):
32 add_directory(library_dirs, "/opt/local/lib")
33 add_directory(include_dirs, "/opt/local/include")
35 - add_directory(library_dirs, "/usr/local/lib")
36 # FIXME: check /opt/stuff directories here?
38 prefix = sysconfig.get_config_var("prefix")
39 @@ -207,13 +206,6 @@ class pil_build_ext(build_ext):
40 if os.path.isfile(os.path.join(tcl_dir, "tk.h")):
41 add_directory(include_dirs, tcl_dir)
43 - # standard locations
44 - add_directory(library_dirs, "/usr/local/lib")
45 - add_directory(include_dirs, "/usr/local/include")
47 - add_directory(library_dirs, "/usr/lib")
48 - add_directory(include_dirs, "/usr/include")
51 # insert new dirs *before* default libs, to avoid conflicts
52 # between Python PYD stub libs and real libraries