What is the current status for pypy and pypy3k as of 07/01/2014?

325 views
Skip to first unread message

tegsky...@gmail.com

unread,
Jul 1, 2014, 3:34:36 PM7/1/14
to gev...@googlegroups.com
Gevent for PyPy (Python 2.7) has been a work in progress for months and I'm curious as to when it can be or will be considered production ready. On top of that, the first stable release of PyPy3 (Python 3.2) has been released recently and not sure if that is going to be a focus on Gevent at this time or will be put on the backburner until the Gevent team is confident in the status of Gevent for standard PyPy.

Any updates would be great. Thanks! :-P

Matthias Urlichs

unread,
Jul 2, 2014, 2:50:38 AM7/2/14
to gev...@googlegroups.com
Hi,

tegsky...@gmail.com:
> Gevent for PyPy (Python 2.7) has been a work in progress for months and I'm
> curious as to when it can be or will be considered production ready.

I've been testing it a bit; seems to work well, except for an annoying cffi
error message when it starts (you really shouldn't initialize "extern"
variables …) and another annoying one from threading (the ususal, cause by
"you monkeypatched threading too late", except that I did that first thing)
on stop.
--
-- Matthias Urlichs

Galfy T

unread,
Jul 7, 2014, 9:05:15 AM7/7/14
to gev...@googlegroups.com
> I've been testing it a bit; seems to work well, except for an annoying cffi 
Hi smurf, can you describe the steps that we need to do in order to compile and use gevent with pypy? 

Thanks in advance.
Galfy

Matthias Urlichs

unread,
Jul 7, 2014, 7:43:36 PM7/7/14
to gev...@googlegroups.com
Hi,

Galfy T:
> Hi smurf, can you describe the steps that we need to do in order to compile
> and use gevent with pypy?
>
"pypy install gevent" (from a virtualenv) worked last week. ;-)

--
-- Matthias Urlichs

Galfy T

unread,
Jul 8, 2014, 8:04:57 AM7/8/14
to gev...@googlegroups.com
Hi Matthias,
  Thanks a lot for the hint. I did the following on my Ubuntu 14.04:

----
sudo apt-get install virtualenv
sudo apt-get install pypy
virtualenv -p /usr/bin/pypy ~/virtualenv/pypy
source ~/virtualenv/pypy/bin/activate
cd ~/dev/
cd gevent
python setup.py build
sudo python setup.py install 
----

It seems to get installed, although I am getting the following errors during installation:

----
byte-compiling build/bdist.linux-i686/egg/gevent/_socket3.py to _socket3.pyc
  File "build/bdist.linux-i686/egg/gevent/_socket3.py", line 133
    def makefile(self, mode="r", buffering=None, *,
                                                  ^
SyntaxError: invalid syntax

.....

creating /usr/local/lib/python2.7/dist-packages/gevent-1.1-py2.7-linux-i686.egg
Extracting gevent-1.1-py2.7-linux-i686.egg to /usr/local/lib/python2.7/dist-packages
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.1-py2.7-linux-i686.egg/gevent/_socket3.py", line 133
    def makefile(self, mode="r", buffering=None, *,
                                                  ^
SyntaxError: invalid syntax

Removing gevent 1.0.1 from easy-install.pth file
Adding gevent 1.1 to easy-install.pth file
-----

PyPy version:
Python 2.7.3 (2.2.1+dfsg-1, Nov 28 2013, 05:09:46)
[PyPy 2.2.1 with GCC 4.8.2] on linux2

Any ideas what can be the issue with gevent/_socket3.py line 133?

Galfy

Galfy T

unread,
Jul 8, 2014, 8:26:35 AM7/8/14
to gev...@googlegroups.com
> It seems to get installed, although I am getting the following errors during installation:
Actually I was wrong. I did not get installed. 

(pypy)x@x-virtual-machine:/tmp$ yolk -l
cffi            - 0.8          - active development (/usr/lib/pypy/lib_pypy)
greenlet        - 0.4.0        - active development (/usr/lib/pypy/lib_pypy)
pip 1.5.4 has no metadata
readline        - 6.2.4.1      - active development (/usr/lib/pypy/lib_pypy)
setuptools 2.2 has no metadata
wsgiref         - 0.1.2        - active development (/usr/lib/pypy/lib-python/2.7)
yolk            - 0.4.3        - active 


(pypy)x@x-virtual-machine:/tmp$ python
Python 2.7.3 (2.2.1+dfsg-1, Nov 28 2013, 05:09:46)
[PyPy 2.2.1 with GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 2.0-beta2 released''
>>>> import gevent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gevent
>>>> 


Any ideas what I have done wrong?
Reply all
Reply to author
Forward
0 new messages