protobuf + pypy
nataliabidart at gmail.com
Wed Aug 29 00:01:14 CEST 2012
On Tue, Aug 21, 2012 at 6:55 PM, Pedro Larroy
<pedro.larroy.lists at gmail.com> wrote:
> Anyone knows if it's possible to use protobuffers with pypy? Seems
> there isn't much info on the web about this.
So, in my experience, the easiest way to confirm if something works
with PyPy (when you can't find proper bibliography in the web) is to
try to install it in a pypy virtualenv :
(my-pypy-env)nessita at dali:~/projects/pypy/my-pypy-env$ pip install protobuf
Downloading protobuf-2.4.1.tar.gz (56Kb): 56Kb downloaded
Storing download in cache at
Running setup.py egg_info for package protobuf
Requirement already satisfied (use --upgrade to upgrade): distribute
in ./site-packages/distribute-0.6.24-py2.7.egg (from protobuf)
Installing collected packages: protobuf
Running setup.py install for protobuf
Skipping installation of
Successfully installed protobuf
(my-pypy-env)nessita at dali:~/projects/pypy/my-pypy-env$ pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``Python 2.x is not dead''
>>>> from google.protobuf import descriptor
Seems to work :-) (though I have no app using it right now).
 Instructions on how to create a PyPy virtualenv:
More information about the Python-list