mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
This whole dir add business seems insane, but I'll play along
This commit is contained in:
parent
3089d38787
commit
1e686fddf9
6
setup.py
6
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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user