Merge pull request #590 from wiredfool/ppc-setup

Rearrange lib directory detection, fixes #587
This commit is contained in:
Alex Clark ☺ 2014-03-31 16:10:07 -04:00
commit dc1664500b

View File

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