mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
Merge pull request #590 from wiredfool/ppc-setup
Rearrange lib directory detection, fixes #587
This commit is contained in:
commit
dc1664500b
7
setup.py
7
setup.py
|
@ -226,7 +226,12 @@ class pil_build_ext(build_ext):
|
|||
_add_directory(include_dirs, "/usr/X11/include")
|
||||
|
||||
elif sys.platform.startswith("linux"):
|
||||
for platform_ in (plat.architecture()[0], plat.processor()):
|
||||
arch_tp = (plat.processor(), plat.architecture()[0])
|
||||
if arch_tp == ("x86_64","32bit"):
|
||||
# 32 bit build on 64 bit machine.
|
||||
_add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
|
||||
else:
|
||||
for platform_ in arch_tp:
|
||||
|
||||
if not platform_:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user