-
Notifications
You must be signed in to change notification settings - Fork 0
Home
What is this branch?
An experimental branch to modify psycopg2 to work with PyPy.
How should I install it?
Don't! (Yet)
(but if you insist...)
-
grab my PyPy branch from http://codespeak.net/svn/pypy/branch/psycopg2compatibility and then run:
/path/to/pypy/pypy/module/cpyext/presetup.py setup.py build
from the psycopg2 root directory.
-
Then to run pypy with psycopg2, run:
PYTHONPATH=/path/to/psycopg2/build/lib.linux-x86-2.6 /path/to/pypy/pypy/bin/py.py --allworkingmodules #NOTE: that PYTHONPATH is very inexact
and watch it explode.
I haven't even tried to use psycopg2 with a translated PyPy yet, so don't expect it to work.
Currently the most interesting thing you can do is run:
PYTHONPATH=... /path/to/pypy/pypy/bin/py.py --allworkingmodules runtests.py tests.test_connection
and watch the text scroll by, but some of the tests now pass!