mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
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.
This commit is contained in:
parent
df87d7d46e
commit
2867d203cf
2
setup.py
2
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user