lxml on Mac OS X
Now with even less seg-faulting!
For a current project I needed to include (the most excellent Python XML library) lxml. Getting the right version to run on Mac OS X has been notoriously difficult, though. Easy-installing it was broken (and currently is, for me, as well) and while I have found multiple how-tos, they all dealt with the problem by installing it manually from sources and patching the configure process etc. pp. That would, of course, defeat the whole purpose of using buildout in the first place.
Cheeseshop to the rescue: there is a recipe for installing lxml along with the proper versions of libxml and libxslt, however, its default values didn't work for me. So for the record: the following buildout snippet will get you non-segfaulting lxml on (at least) Mac OS X 10.5.x and Ubuntu linux. YMMV.
parts =
[...]
lxml
eggs =
[...]
lxml==2.1.2
[lxml]
recipe=plone.recipe.lxml
egg =
lxml==2.1.2
libxml2_url =
http://xmlsoft.org/sources/libxml2-2.7.1.tar.gz
libxslt_url =
http://xmlsoft.org/sources/libxslt-1.1.24.tar.gz
p.s. this should be good news for all folks working with Deliverance. Perhaps now I could revisit that...
