This whole dir add business seems insane, but I'll play along

This commit is contained in:
Alex Clark 2010-11-26 09:57:58 -05:00
parent 3089d38787
commit 1e686fddf9

View File

@ -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?