could twisted itself be split into two separate packages? e.g. twisted and twisted-extensions, etc.<div><br></div><div>I understand the frustration of dealing with pypy/distutils, etc.</div><div>but from an end developer&#39;s perspective the hurdles one has to go through to get pypy+twisted working</div>
<div>is a major roadblock when it comes to stealing some of the thunder Node.js is getting these days.</div><div><br></div><div>Cheers,</div><div>Jacek<br><br><div class="gmail_quote">On Fri, Sep 30, 2011 at 12:52 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;"><div class="im">On 04:30 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
&gt;Is there an option to separate the Twisted core (i.e. the part everyone<br>
&gt;runs<br>
&gt;on PyPy with the PYTHONPATH hack )<br>
&gt;from the part with embedded C extensions?<br>
&gt;<br>
&gt;At least allow a trouble-free PyPy install for the core functionality?<br>
<br>
</div>There isn&#39;t now.  Given what I know about distutils, it doesn&#39;t seem<br>
like an easy thing to implement.  If anyone has ideas about how it could<br>
be done, we could discuss it (or feel free to just implement it ;).<br>
<br>
Jean-Paul<br>
<div><div></div><div class="h5">&gt;On Fri, Sep 30, 2011 at 12:25 PM, &lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt; wrote:<br>
&gt;&gt;On 03:55 pm, <a href="mailto:jaroslaw.fedewicz@gmail.com">jaroslaw.fedewicz@gmail.com</a> wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;On Sep 30, 2011, at 16:55 , <a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a> wrote:<br>
&gt;&gt; &gt;&gt;On 01:18 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
&gt;&gt; &gt;&gt;&gt;And once I reach 0.1 with all of these features, I will post some<br>
&gt;&gt; &gt;&gt;&gt;blog<br>
&gt;&gt; &gt;&gt;&gt;entries about this together with PyPy benchmarks...so that people<br>
&gt;&gt; &gt;&gt;&gt;don&#39;t<br>
&gt;&gt; &gt;&gt;&gt;think<br>
&gt;&gt; &gt;&gt;&gt;Javascript / Node.js is your only option when it comes to async I/O<br>
&gt;&gt; &gt;&gt;&gt;web<br>
&gt;&gt; &gt;&gt;&gt;frameworks :-)<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;BTW, is there any progress on getting Twisted to install under PyPy<br>
&gt;&gt; &gt;&gt;&gt;in<br>
&gt;&gt; &gt;&gt;&gt;the<br>
&gt;&gt; &gt;&gt;&gt;near future? I know you guys have been looking into it....<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &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; &gt;&gt;are<br>
&gt;&gt; &gt;&gt;still problems with Twisted trunk@HEAD on PyPy, please let us know.<br>
&gt;&gt;:)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;There are in fact some problems.<br>
&gt;&gt;<br>
&gt;&gt; &gt;$ sudo pypy-c ./setup.py install<br>
&gt;&gt; &gt;[snip]<br>
&gt;&gt; &gt;twisted/runner/portmap.c:10:20: error: Python.h: No such file or<br>
&gt;&gt; &gt;directory<br>
&gt;&gt; &gt;[snip]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;I have PyPy 1.6 with cpyext.<br>
&gt;&gt;<br>
&gt;&gt;Notice the &quot;Python.h&quot; error message here.  I think that some of the<br>
&gt;&gt;PyPy<br>
&gt;&gt;binary distributions are broken, missing all of the header files for<br>
&gt;&gt;cpyext.<br>
&gt;&gt;<br>
&gt;&gt;I filed a ticket about this for Windows in the PyPy issue tracker<br>
&gt;&gt;since<br>
&gt;&gt;I just observed the issue there.  I didn&#39;t realize it affected other<br>
&gt;&gt;platforms as well.<br>
&gt;&gt;<br>
&gt;&gt;<a href="https://bugs.pypy.org/issue889" target="_blank">https://bugs.pypy.org/issue889</a><br>
&gt;&gt; &gt;[snip]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Extracting Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg to<br>
&gt;&gt; &gt;/opt/local/lib/pypy/site-packages<br>
&gt;&gt; &gt;error: /opt/local/lib/pypy/site-<br>
&gt;&gt;<br>
&gt;&gt; &gt;packages/Twisted-11.0.0_r32705-py2.7-macosx-10.6-i386.egg/twisted/enterprise/row.pyc:<br>
&gt;&gt; &gt;Too many open files<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;This error is known to PyPy guys, they, however, insist that<br>
&gt;&gt;setuptools<br>
&gt;&gt; &gt;are wrong and not them. Which sounds totally wrong to me, but again,<br>
&gt;&gt; &gt;who am I to judge.<br>
&gt;&gt;<br>
&gt;&gt;Another way to look at it is that they are not going to implement<br>
&gt;&gt;reference counting for file objects.  So whether they are wrong or<br>
&gt;&gt;not,<br>
&gt;&gt;the problem has to be fixed somewhere else.  Hopefully it can be fixed<br>
&gt;&gt;in the &quot;distribute&quot; project, which is supposed to be a drop-in<br>
&gt;&gt;replacement for setuptools, but with fewer bugs.<br>
&gt;&gt;<br>
&gt;&gt;Jean-Paul<br>
&gt;&gt;<br>
&gt;&gt;_______________________________________________<br>
&gt;&gt;Twisted-web mailing list<br>
&gt;&gt;<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
&gt;&gt;<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
&gt;<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>
</div></div></blockquote></div><br></div>