mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Rearranged code
This commit is contained in:
parent
d94239ae3d
commit
fe4e52deac
18
setup.py
18
setup.py
|
@ -473,17 +473,15 @@ class pil_build_ext(build_ext):
|
||||||
lib_root = include_root = root
|
lib_root = include_root = root
|
||||||
|
|
||||||
if lib_root is not None:
|
if lib_root is not None:
|
||||||
if isinstance(lib_root, str):
|
if not isinstance(lib_root, (tuple, list)):
|
||||||
_add_directory(library_dirs, lib_root)
|
lib_root = (lib_root,)
|
||||||
else:
|
for lib_dir in lib_root:
|
||||||
for lib_dir in lib_root:
|
_add_directory(library_dirs, lib_dir)
|
||||||
_add_directory(library_dirs, lib_dir)
|
|
||||||
if include_root is not None:
|
if include_root is not None:
|
||||||
if isinstance(include_root, str):
|
if not isinstance(include_root, (tuple, list)):
|
||||||
_add_directory(include_dirs, include_root)
|
include_root = (include_root,)
|
||||||
else:
|
for include_dir in include_root:
|
||||||
for include_dir in include_root:
|
_add_directory(include_dirs, include_dir)
|
||||||
_add_directory(include_dirs, include_dir)
|
|
||||||
|
|
||||||
# respect CFLAGS/CPPFLAGS/LDFLAGS
|
# respect CFLAGS/CPPFLAGS/LDFLAGS
|
||||||
for k in ("CFLAGS", "CPPFLAGS", "LDFLAGS"):
|
for k in ("CFLAGS", "CPPFLAGS", "LDFLAGS"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user