[lxml-dev] some troubles building lxml dev version

Hi, a few quick notes as I've just had some difficulties to build the lxml dev version from the dev instructions (http://codespeak.net/lxml/dev/build.html): * easy_install 'Cython>=0.13' does not work as there seems not to be a 0.13 release of Cython * I tried the latest official Cython release 0.12.1, but cythoning the lxml sources failed * I was then unsure what to download from cython.org as the repository layout seems a bit unusual (coming from a rather cvs/subversion background, that is - but still: no version-tagged repos, no 'trunk', 'cython' denotes the latest release); also didn't find any wiki entry on how to download/checkout cython "trunk" I finally tried hg clone http://hg.cython.org/cython-devel and built lxml trunk with it, which just seemed to succeed. One more note: cython-devel version info says 0.12.1. Holger -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

Hi Holger, sorry for the inconvenience. jholg@gmx.de, 25.06.2010 11:49:
a few quick notes as I've just had some difficulties to build the lxml dev version from the dev instructions (http://codespeak.net/lxml/dev/build.html):
I know, that will change as soon as Cython 0.13 is out.
* easy_install 'Cython>=0.13' does not work as there seems not to be a 0.13 release of Cython
Right, I think I mentioned something like that in the last release notes.
* I tried the latest official Cython release 0.12.1, but cythoning the lxml sources failed
The right version is 0.11.2 for lxml 2.2.x, but 0.13 for lxml 2.3. The trunk requires 0.13 now, mainly due to some code cleanups on my side, trying to make the code in lxml.etree less C-ish and more accessible, readable, maintainable. The next Cython version really has some wonderful features in that regard (and I'd really wish I had had all that available when starting my work on lxml...).
* I was then unsure what to download from cython.org as the repository layout seems a bit unusual (coming from a rather cvs/subversion background, that is - but still: no version-tagged repos, no 'trunk', 'cython' denotes the latest release); also didn't find any wiki entry on how to download/checkout cython "trunk"
I finally tried hg clone http://hg.cython.org/cython-devel and built lxml trunk with it, which just seemed to succeed.
You can always get an archive from the download links at the left side of the hg branch pages: http://hg.cython.org/cython-devel/ http://hg.cython.org/cython-closures/ You used cython-devel, whereas I used cython-closures for 2.3alpha1. Both will work just fine, but cython-closures is currently closer to what will become Cython 0.13.
One more note: cython-devel version info says 0.12.1.
Right. Changed now. Stefan

Hi,
sorry for the inconvenience.
No problem at all.
jholg@gmx.de, 25.06.2010 11:49:
a few quick notes as I've just had some difficulties to build the lxml dev version from the dev instructions (http://codespeak.net/lxml/dev/build.html):
I know, that will change as soon as Cython 0.13 is out.
I see. I just corrected the build doc to use quotation marks, and also the doc/s5/Makefile to follow the PYTHON Makefile option: Committed revision 75585. $ svn diff -c75585 doc/ Index: doc/s5/Makefile =================================================================== --- doc/s5/Makefile (revision 75584) +++ doc/s5/Makefile (revision 75585) @@ -1,3 +1,4 @@ +PYTHON?=python SLIDES=$(subst .txt,.html,$(wildcard *.txt)) @@ -4,7 +5,7 @@ slides: $(SLIDES) %.html: %.txt - python rst2s5.py --current-slide --language=en $< $@ + $(PYTHON) rst2s5.py --current-slide --language=en $< $@ clean: rm -f *~ $(SLIDES) Index: doc/build.txt =================================================================== --- doc/build.txt (revision 75584) +++ doc/build.txt (revision 75585) @@ -46,7 +46,7 @@ you want to be an lxml developer, then you do need a working Cython installation. You can use EasyInstall_ to install it:: - easy_install Cython>=0.13 + easy_install "Cython>=0.13" lxml currently requires Cython 0.13, later release versions should work as well. Holger -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
participants (2)
-
jholg@gmx.de
-
Stefan Behnel