Skip to content

Instantly share code, notes, and snippets.

@jpwatts
Created February 10, 2011 00:33
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jpwatts/819680 to your computer and use it in GitHub Desktop.
Save jpwatts/819680 to your computer and use it in GitHub Desktop.
In which I finally get pyexiv2 working on my Mac using Homebrew and a series of disgusting hacks
#!/bin/sh
brew install python boost exiv2
curl -O http://launchpadlibrarian.net/61465005/pyexiv2-0.3.0.tar.bz2
tar xjvf pyexiv2-0.3.0.tar.bz2
cd pyexiv2-0.3.0
# https://answers.launchpad.net/pyexiv2/+question/140742
echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript
scons BOOSTLIB=boost_python-mt
# https://answers.launchpad.net/pyexiv2/+question/132670
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python \
/usr/local/Cellar/python/2.7.1/lib/libpython2.7.dylib \
build/libexiv2python.dylib
scons BOOSTLIB=boost_python-mt install
# https://answers.launchpad.net/pyexiv2/+question/140742
ln -s /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.dylib \
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.so
@ghostrocket
Copy link

zomg i love you. this was pissing me off.

@mzupan
Copy link

mzupan commented Jul 5, 2011

I would just add scons to the brew install command

@pixnbit
Copy link

pixnbit commented Apr 2, 2013

This gist is a little bit outdated, now with homebrew, you can just do

brew install exiv2 pyexiv2

Done!

@SammyK
Copy link

SammyK commented Aug 8, 2013

Where's the like button? :)

@fyr91
Copy link

fyr91 commented Nov 6, 2013

Thank you!

@manavortex
Copy link

Still an issue, thank you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment