
Op Sa, 2012-06-09 om 11:51 +0200 skryf Stefan Behnel:
F Wolff, 08.06.2012 22:54:
Op So, 2012-04-22 om 00:46 +0200 skryf Stefan Behnel:
here's a little status update regarding lxml on PyPy. I got the basics of lxml.etree working so far, mostly by patching up Cython and tracking down bugs in PyPy's cpyext (CPython C-API compatibility) layer. I'm still getting crashes during error reporting and didn't care much about XPath or XSLT yet. But given that those do not have much Python interaction per se, I don't expect major surprises on that front.
Pypy 1.9 was just released. Does it contain the necessary changes for me to give this a try?
Yes. Please do, I'd be happy about any feedback. There are still features that crash and I need to sort that out, but many things work and are worth a try.
Are the cython changes that are needed in a released version of cython?
No, that would be 0.17. But you can get the archive from github, not that different from a release.
I installed cython from git master without a problem. Trying the same with lxml with pip didn't work. So I tried 'make inplace", and got the error below. I've only ever installed from released versions where cython is not needed, so I'm not familiar with what I need to do to make this work. Any pointers will be appreciated. $ make inplace pypy-1.9/bin/pypy setup.py build_ext -i Building lxml version 2.4.dev. Building with Cython 0.17pre. Using build configuration of libxslt 1.1.24 Building against libxml2/libxslt in the following directory: /usr/lib running build_ext cythoning src/lxml/lxml.etree.pyx to src/lxml/lxml.etree.c warning: src/lxml/xmlerror.pxi:569:26: local variable 'args' referenced before assignment building 'lxml.etree' extension creating build/temp.linux-i686-2.7 creating build/temp.linux-i686-2.7/src creating build/temp.linux-i686-2.7/src/lxml cc -fPIC -Wimplicit -I/usr/include/libxml2 -I/home/fwolff/download/python/lxml-lxml-2260f8d/src/lxml//include -I/home/fwolff/download/python/pypy-1.9/include -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9_ErrorLog_connect’: src/lxml/lxml.etree.c:31030: error: ‘xmlStructuredErrorContext’ undeclared (first use in this function) src/lxml/lxml.etree.c:31030: error: (Each undeclared identifier is reported only once src/lxml/lxml.etree.c:31030: error: for each function it appears in.) error: command 'cc' failed with exit status 1 make: *** [inplace] Error 1 Thanks for any help! Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/localisation-guide-now-avai...