Skip to content

Instantly share code, notes, and snippets.

@simonw
Created August 14, 2009 11:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save simonw/167784 to your computer and use it in GitHub Desktop.
Save simonw/167784 to your computer and use it in GitHub Desktop.
A working recipe for installing lxml on OS X with static dependencies and no need for MacPorts or Fink
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
@mathiasbynens
Copy link

Thanks for this!

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

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