Skip to content

Commit

Permalink
Merge pull request #3819 from jefferyto/patch-1
Browse files Browse the repository at this point in the history
Include CPPFLAGS when searching for libraries
  • Loading branch information
hugovk committed Jun 29, 2019
2 parents 0e7358a + 4119d30 commit d19ed25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -386,8 +386,8 @@ def build_extensions(self):
_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))
Expand Down

0 comments on commit d19ed25

Please sign in to comment.