mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Merge pull request #7069 from adisbladis/include-dir-type-confusion
Fixed type handling for include and lib directories
This commit is contained in:
commit
0ec0a89ead
4
setup.py
4
setup.py
|
@ -473,9 +473,13 @@ 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 not isinstance(lib_root, (tuple, list)):
|
||||||
|
lib_root = (lib_root,)
|
||||||
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 not isinstance(include_root, (tuple, list)):
|
||||||
|
include_root = (include_root,)
|
||||||
for include_dir in include_root:
|
for include_dir in include_root:
|
||||||
_add_directory(include_dirs, include_dir)
|
_add_directory(include_dirs, include_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user