Skip to content

Commit

Permalink
Merge fa41efb into 37208d1
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshp committed Aug 4, 2019
2 parents 37208d1 + fa41efb commit d7835b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup_extra.py
Expand Up @@ -78,7 +78,10 @@ def _pkg_config():
output = _b2str(output)
if output:
include_path = output.strip()[2:]
include_path = include_path.strip() or None
include_path = include_path.strip()
# This line below adds an extra include path for certain cases where pkg-config
# returns the full path to the cgraph.h directory (e.g. with Homebrew and MacPorts.
include_path = include_path + ":" + "/".join(include_path.split("/")[:-1]) or None
except OSError:
print("Failed to find pkg-config")
return include_path, library_path
Expand Down

0 comments on commit d7835b7

Please sign in to comment.