[lxml-dev] lxml now ships with Pyrex included

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Thu Oct 26 11:48:11 CEST 2006


Hi,

as lxml will most likely continue to depend on a non-release version of pyrex
for quite a while, I decided to add the patched Pyrex version to the source
distribution. It is part of lxml's SVN checkout, I only add the Pyrex
directory to the project root in my release script. The setup.py script simply
prepends that directory to the Python path so that the modified Pyrex is used
automatically.

This has a couple of consequences for users:

* Distributors that want to apply patches to the lxml sources no longer have
to check out Pyrex themselves and can shrink their build scripts to a simple
run of setup.py.

* Users can now modify and build lxml distributions without globally
installing a patched Pyrex. They can also run "make clean" if something went
wrong, without breaking the build afterwards, even if they have an unpatched
Pyrex installed in their site-packages.

I hope this helps in making lxml easier to build. Note that SVN users still
have to install our Pyrex version, but I think that's acceptable.

Now that this works, we could also remove the .c files to shrink the source
distribution. Any objections?

Stefan


More information about the lxml-dev mailing list