public
Last active

A working recipe for installing lxml on OS X with static dependencies and no need for MacPorts or Fink

  • Download Gist
install-lxml-osx-static-deps
1 2 3 4 5 6 7 8 9 10
cd /tmp
wget http://codespeak.net/lxml/lxml-2.2.2.tgz
tar -xzvf lxml-2.2.2.tgz
cd lxml-2.2.2
cd libs/
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.24.tar.gz
cd ..
python setup.py build --static-deps --libxml2-version=2.7.3 --libxslt-version=1.1.24
sudo python setup.py install

Thanks for this!

Could you turn this into a Homebrew formula, so it’s even easier to install?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.