Skip to content

Instantly share code, notes, and snippets.

@EnTeQuAk
Created July 16, 2014 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EnTeQuAk/583b721e6109a201b76a to your computer and use it in GitHub Desktop.
Save EnTeQuAk/583b721e6109a201b76a to your computer and use it in GitHub Desktop.
diff -r 9e1ab68be4b9 setup.py
--- a/setup.py Tue Jun 17 02:31:37 2014 +0900
+++ b/setup.py Wed Jul 16 16:18:23 2014 +0200
@@ -17,16 +17,24 @@
'/usr/local/lib/', '/usr/lib/']
if sys.platform.lower() == 'darwin':
include_dirs.append('/opt/local/include/')
- search_include_dirs.extend(['/opt/local/include/GraphicsMagick/',
- '/opt/local/include/',
- '/usr/local/Cellar/graphicsmagick'])
- search_library_dirs.extend(['/opt/local/lib/',
- '/usr/local/Cellar/graphicsmagick'])
+ search_include_dirs.extend(
+ ['/opt/local/include/GraphicsMagick/',
+ '/opt/local/include/',
+ '/usr/local/Cellar/graphicsmagick',
+ os.path.expanduser('~/Library/Homebrew/Cellar/graphicsmagick/')])
+
+ search_library_dirs.extend(
+ ['/opt/local/lib/',
+ '/usr/local/Cellar/graphicsmagick',
+ '~/Library/Homebrew/Cellar/graphicsmagick/'])
+
# for ImageMagick
search_include_dirs.extend(['/usr/local/include/ImageMagick/',
'/usr/include/ImageMagick/'])
if sys.platform.lower() == 'darwin':
search_include_dirs.append('/opt/local/include/ImageMagick/')
+ search_library_dirs.append(os.path.expanduser(
+ '~/Library/Homebrew/Cellar/imagemagick/'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment