Skip to content
Browse files

Add Homebrew and mac ports include directories

Closes #34
  • Loading branch information...
1 parent 93d6a04 commit bc1eec863c5ab2ac6826f72be255661e01bac41e @mkleehammer committed Apr 7, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 setup.py
View
4 setup.py
@@ -172,6 +172,10 @@ def get_compiler_settings(version_str):
# For now target 10.7 to eliminate the warnings.
settings['define_macros'].append( ('MAC_OS_X_VERSION_10_7',) )
+ # Add directories for MacPorts and Homebrew.
+ dirs = ['/usr/local/include', '/opt/local/include']
+ settings['include_dirs'].extend(dir for dir in dirs if isdir(dir))
+
else:
# Other posix-like: Linux, Solaris, etc.

0 comments on commit bc1eec8

Please sign in to comment.
Something went wrong with that request. Please try again.