Is there an option to separate the Twisted core (i.e. the part everyone runs on PyPy with the PYTHONPATH hack )<div>from the part with embedded C extensions?</div><div><br></div><div>At least allow a trouble-free PyPy install for the core functionality?<br>
<br><div class="gmail_quote">On Fri, Sep 30, 2011 at 12:25 PM, <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 03:55 pm, <a href="mailto:jaroslaw.fedewicz@gmail.com">jaroslaw.fedewicz@gmail.com</a> wrote:<br>
><br>
>On Sep 30, 2011, at 16:55 , <a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a> wrote:<br>
>>On 01:18 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
>>>And once I reach 0.1 with all of these features, I will post some<br>
>>>blog<br>
>>>entries about this together with PyPy benchmarks...so that people<br>
>>>don't<br>
>>>think<br>
>>>Javascript / Node.js is your only option when it comes to async I/O<br>
>>>web<br>
>>>frameworks :-)<br>
>>><br>
>>>BTW, is there any progress on getting Twisted to install under PyPy<br>
>>>in<br>
>>>the<br>
>>>near future? I know you guys have been looking into it....<br>
>><br>
>><a href="http://twistedmatrix.com/trac/ticket/5158" target="_blank">http://twistedmatrix.com/trac/ticket/5158</a> is resolved now. If there<br>
>>are<br>
>>still problems with Twisted trunk@HEAD on PyPy, please let us know. :)<br>
><br>
>There are in fact some problems.<br>
<br>
>$ sudo pypy-c ./setup.py install<br>
>[snip]<br>
>twisted/runner/portmap.c:10:20: error: Python.h: No such file or<br>
>directory<br>
>[snip]<br>
><br>
>I have PyPy 1.6 with cpyext.<br>
<br>
Notice the "Python.h" error message here. I think that some of the PyPy<br>
binary distributions are broken, missing all of the header files for<br>
cpyext.<br>
<br>
I filed a ticket about this for Windows in the PyPy issue tracker since<br>
I just observed the issue there. I didn't realize it affected other<br>
platforms as well.<br>
<br>
<a href="https://bugs.pypy.org/issue889" target="_blank">https://bugs.pypy.org/issue889</a><br>
>[snip]<br>
><br>
>Extracting Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg to<br>
>/opt/local/lib/pypy/site-packages<br>
>error: /opt/local/lib/pypy/site-<br>
>packages/Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg/twisted/enterprise/row.pyc:<br>
>Too many open files<br>
><br>
>This error is known to PyPy guys, they, however, insist that setuptools<br>
>are wrong and not them. Which sounds totally wrong to me, but again,<br>
>who am I to judge.<br>
<br>
Another way to look at it is that they are not going to implement<br>
reference counting for file objects. So whether they are wrong or not,<br>
the problem has to be fixed somewhere else. Hopefully it can be fixed<br>
in the "distribute" project, which is supposed to be a drop-in<br>
replacement for setuptools, but with fewer bugs.<br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</blockquote></div><br></div>