mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-27 05:24:12 +03:00
unnest disable-platform-guessing code
This commit is contained in:
parent
ce2bb05a2b
commit
d7f2698718
8
setup.py
8
setup.py
|
@ -224,7 +224,10 @@ class pil_build_ext(build_ext):
|
|||
#
|
||||
# add platform directories
|
||||
|
||||
if sys.platform == "cygwin":
|
||||
if self.disable_platform_guessing:
|
||||
pass
|
||||
|
||||
elif sys.platform == "cygwin":
|
||||
# pythonX.Y.dll.a is in the /usr/lib/pythonX.Y/config directory
|
||||
_add_directory(library_dirs,
|
||||
os.path.join("/usr/lib", "python%s" %
|
||||
|
@ -270,9 +273,6 @@ class pil_build_ext(build_ext):
|
|||
_add_directory(include_dirs, "/usr/X11/include")
|
||||
|
||||
elif sys.platform.startswith("linux"):
|
||||
if self.disable_platform_guessing:
|
||||
pass
|
||||
else:
|
||||
arch_tp = (plat.processor(), plat.architecture()[0])
|
||||
if arch_tp == ("x86_64", "32bit"):
|
||||
# 32-bit build on 64-bit machine.
|
||||
|
|
Loading…
Reference in New Issue
Block a user