Recently I wanted to test out odoo on Pypy. Pypy has not reached the point of compatability that one could simply switch the interpreter. Some libraries need to be replaced, or installed with latest development code.
That being said, changes are pretty simple:
1. gevent and greenlet
Install from the latest development code to avoid smth like this:
gevent/callbacks.c:8:18: error: ‘PyThreadState’ has no member named ‘curexc_type’
gevent/callbacks.c:11:19: error: ‘PyThreadState’ has no member named ‘curexc_value’
gevent/callbacks.c:12:23: error: ‘PyThreadState’ has no member named ‘curexc_traceback’
To install from github
pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
pip install git+git://github.com/python-greenlet/greenlet.git#egg=greenlet
2. psycopg2
Instead of psycopg, install:
pip install psycopg2cffi psycopg2cffi-compat
Here’s the link to complete pip requirements.txt
Written with StackEdit.
No comments:
Post a Comment