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">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</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>
&gt;<br>
&gt;On Sep 30, 2011, at 16:55 , <a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a> wrote:<br>
&gt;&gt;On 01:18 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
&gt;&gt;&gt;And once I reach 0.1 with all of these features, I will post some<br>
&gt;&gt;&gt;blog<br>
&gt;&gt;&gt;entries about this together with PyPy benchmarks...so that people<br>
&gt;&gt;&gt;don&#39;t<br>
&gt;&gt;&gt;think<br>
&gt;&gt;&gt;Javascript / Node.js is your only option when it comes to async I/O<br>
&gt;&gt;&gt;web<br>
&gt;&gt;&gt;frameworks :-)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;BTW, is there any progress on getting Twisted to install under PyPy<br>
&gt;&gt;&gt;in<br>
&gt;&gt;&gt;the<br>
&gt;&gt;&gt;near future? I know you guys have been looking into it....<br>
&gt;&gt;<br>
&gt;&gt;<a href="http://twistedmatrix.com/trac/ticket/5158" target="_blank">http://twistedmatrix.com/trac/ticket/5158</a> is resolved now.  If there<br>
&gt;&gt;are<br>
&gt;&gt;still problems with Twisted trunk@HEAD on PyPy, please let us know. :)<br>
&gt;<br>
&gt;There are in fact some problems.<br>
<br>
&gt;$ sudo pypy-c ./setup.py install<br>
&gt;[snip]<br>
&gt;twisted/runner/portmap.c:10:20: error: Python.h: No such file or<br>
&gt;directory<br>
&gt;[snip]<br>
&gt;<br>
&gt;I have PyPy 1.6 with cpyext.<br>
<br>
Notice the &quot;Python.h&quot; 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&#39;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>
&gt;[snip]<br>
&gt;<br>
&gt;Extracting Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg to<br>
&gt;/opt/local/lib/pypy/site-packages<br>
&gt;error: /opt/local/lib/pypy/site-<br>
&gt;packages/Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg/twisted/enterprise/row.pyc:<br>
&gt;Too many open files<br>
&gt;<br>
&gt;This error is known to PyPy guys, they, however, insist that setuptools<br>
&gt;are wrong and not them. Which sounds totally wrong to me, but again,<br>
&gt;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 &quot;distribute&quot; 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>