nagare on pypy

31 views
Skip to first unread message

Nik

unread,
Nov 23, 2011, 5:10:03 PM11/23/11
to Nagare users
Hello!

I have tried to install nagare using the latest version of pypy (1.7)
which comes with stackless features enabled by default
and came across the problem of building the extension
module lxml. It looks like that it is not possible at all for
current version of lxml.

Is it possible to replace the the dependency on lxml
with standard elementree in nagare for the case that
somebody (like me) wanting to run it on pypy?

Regards
Nik


apoirier

unread,
Nov 24, 2011, 9:45:29 AM11/24/11
to nagare...@googlegroups.com
Hi Nik,


Le mercredi 23 novembre 2011 23:10:03 UTC+1, Nik a écrit :
Hello!

I have tried to install nagare using the latest version of pypy (1.7)
which comes with stackless features enabled by default
and came across the problem of building  the extension
module lxml. It looks like that it is not possible at all for
current version of lxml.


Yes, lxml is written in Cython which is not ported on Pypy

Is it possible to replace the the dependency on lxml
with standard elementree in nagare for the case that
somebody (like me) wanting to run it on pypy?

Here are quick, not well-tested versions of the nagare.serializer, nagare.namespaces.xml, nagare.namespaces.xhtml_base and nagare.namespaces.xhtml modules using elementtree.
These changes, once apply on the mercurial tip version of Nagare, are enough to run the Counter example but not a lot more I'm afraid. For example I see the call/answer mecanism (where a continuation is created) is not working. All in all, a good start for the first official release of Stackless Pypy but more investigations are still needed.

Best regards,
Alain

serializer.py
xml.py
xhtml_base.py
xhtml.py
Reply all
Reply to author
Forward
0 new messages