
Laurence Rowe, 30.01.2012 16:59:
I'm having trouble building lxml from a git clone on Mac OS X 10.6 with python.org python 2.7 or my own compiled python 2.6. Any idea what might be causing the errors below?
$ python2.7 setup.py build Building lxml version 2.4.dev. Building with Cython 0.15.1. [...] cythoning src/lxml/lxml.etree.pyx to src/lxml/lxml.etree.c
Error compiling Cython file: ------------------------------------------------------------ ... cdef _Element _node cdef _node_to_node_function _next_element cdef _MultiTagMatcher _matcher
@cython.final cdef _initTagMatcher(self, tags): ^ ------------------------------------------------------------
src/lxml/lxml.etree.pyx:2501:9: The final compiler directive is not allowed in function scope [...]
Looks like you'll need 0.16 (i.e. the latest git version) of Cython for the latest lxml master branch. It's close to release (certainly closer than lxml 2.4) and should be stable enough for general use. Stefan