Skip to content

Commit

Permalink
Add Homebrew and mac ports include directories
Browse files Browse the repository at this point in the history
Closes #34
  • Loading branch information
mkleehammer committed Apr 7, 2016
1 parent 93d6a04 commit bc1eec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Expand Up @@ -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.

Expand Down

1 comment on commit bc1eec8

@sgivens0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @mkleehammer this doesn't work if mac homebrew is in a nonstandard prefix, see #101 (comment)

is there any way to upstream a way to resolve this or add some sort of flag, or what do you recommend? I'm happy to open a new ticket about this

Please sign in to comment.