From 2867d203cfd42d071541b58c2c1a7239f414111d Mon Sep 17 00:00:00 2001 From: "Christian E. Hopps" Date: Tue, 11 Feb 2014 15:05:09 -0800 Subject: [PATCH] Handle 32bit compiled python on 64bit architecture platforma.processor() will return x86_64 on a 64 bit linux system; however, this it wrong for 32 bit compiled python. By looking at platform.architecture() first it correctly notes the 32bit compile. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0d791c444..a8ff2e762 100644 --- a/setup.py +++ b/setup.py @@ -222,7 +222,7 @@ class pil_build_ext(build_ext): _add_directory(include_dirs, "/usr/X11/include") elif sys.platform.startswith("linux"): - for platform_ in (plat.processor(), plat.architecture()[0]): + for platform_ in (plat.architecture()[0], plat.processor()): if not platform_: continue