mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #3819 from jefferyto/patch-1
Include CPPFLAGS when searching for libraries
This commit is contained in:
commit
d19ed257c4
4
setup.py
4
setup.py
|
@ -386,8 +386,8 @@ class pil_build_ext(build_ext):
|
|||
_add_directory(library_dirs, lib_root)
|
||||
_add_directory(include_dirs, include_root)
|
||||
|
||||
# respect CFLAGS/LDFLAGS
|
||||
for k in ("CFLAGS", "LDFLAGS"):
|
||||
# respect CFLAGS/CPPFLAGS/LDFLAGS
|
||||
for k in ("CFLAGS", "CPPFLAGS", "LDFLAGS"):
|
||||
if k in os.environ:
|
||||
for match in re.finditer(r"-I([^\s]+)", os.environ[k]):
|
||||
_add_directory(include_dirs, match.group(1))
|
||||
|
|
Loading…
Reference in New Issue
Block a user