Installing PythonMagick on OS X
brew install boost- will take a lot of time and make your Mac hotbrew install --with-magick-plus-plus imagemagickcd <path_to_PythonMagick_source>./configure --with-boost=<path_to_boost_root>makemake installpython -c "import PythonMagick"
If PythonMagick build fails saying that it couldn't find -lboost_python navigate to <path_to_boost_root>/lib/, ln -s libboost_python-mt.dylib libboost_python.dylib and run make again.
Tested on 10.6.8 with Python 2.6.7 (custom build). Should work with Lion running stock 2.7.
NOTE: Looks like I was too quick to call it done. The module imports but raises exceptions when used. Bummer.
Just a quick note for anyone checking this in future, after successfully building PythonMagick on Mac OS X Lion I was getting:
This can be fixed by changing the first line of
__init__.pyin PythonMagick (Usually to be found in site-packages, in my case/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PythonMagick) from:to