From 1e686fddf9e4ca39973d819253a29c9f26c34d80 Mon Sep 17 00:00:00 2001 From: Alex Clark Date: Fri, 26 Nov 2010 09:57:58 -0500 Subject: [PATCH] This whole dir add business seems insane, but I'll play along --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4f4bfc082..ad5528c7d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ # Usage: python setup.py install # -import glob, os, re, struct, string, sys +import glob, os, re, struct, string, sys, platform def libinclude(root): # map root to (root/lib, root/include) @@ -140,6 +140,10 @@ class pil_build_ext(build_ext): add_directory(library_dirs, "/usr/x11/lib") add_directory(library_dirs, "/usr/x11/include") + elif sys.platform == "Linux": + if platform.processor == "x86_64": + add_directory(library_dirs, "/usr/lib64") + add_directory(library_dirs, "/usr/local/lib") # FIXME: check /opt/stuff directories here?