Ich hab es mal getestet:
Code: Alles auswählen
# aktuelles virtualenv bekommen (über pip)
~$ wget https://github.com/pypa/pip/raw/master/contrib/get-pip.py
~$ sudo python get-pip.py
~$ sudo pip install --upgrade virtualenv
~$ sudo ln -s /usr/local/bin/ /usr/bin/virtualenv
~$ wget https://bitbucket.org/pypy/pypy/downloads/pypy-1.5-linux64.tar.bz2
~$ tar xf pypy-1.5-linux64.tar.bz2
~$ virtualenv -p pypy-c-jit-43780-b590cf6de419-linux64/bin/pypy pypy-env
~$ cd pypy-env/bin
~/pypy-env/bin$ source activate
(pypy-env)~/pypy-env/bin$ source activate
(pypy-env)~/pypy-env/bin$ ./pip install -e git+git://github.com/jedie/PyLucid.git#egg=PyLucid --no-deps
PyLucid ist da... Dann weiter: die requirements installieren... Würde auch direkt ohne --no-deps gemacht werden. Aber pip hängt beim "feedparser":
Code: Alles auswählen
(pypy-env)~/pypy-env/bin$ ./pip install --verbose -r ../src/pylucid/requirements/normal_installation.txt
Downloading/unpacking feedparser>=5.0.1,<5.1 (from -r ../src/pylucid/requirements/basic_requirements.txt (line 6))
Ignoring link http://pypi.python.org/packages/source/f/feedparser/feedparser-5.0.tar.gz#md5=983d93bf1f4f8558bc01c08ffea8b61a (from http://pypi.python.org/simple/feedparser/), version 5.0 doesn't match >=5.0.1,<5.1
Ignoring link http://pypi.python.org/packages/source/f/feedparser/feedparser-4.1.tar.gz#md5=573a8df4d4305b37107040654f52b826 (from http://pypi.python.org/simple/feedparser/), version 4.1 doesn't match >=5.0.1,<5.1
Ignoring link http://pypi.python.org/packages/source/f/feedparser/feedparser-5.0.zip#md5=67ccf489699d641876ddb370067959d9 (from http://pypi.python.org/simple/feedparser/), version 5.0 doesn't match >=5.0.1,<5.1
Ignoring link http://pypi.python.org/packages/source/f/feedparser/feedparser-5.0.tar.bz2#md5=88d11b31b31305ea36ba62be8a541a15 (from http://pypi.python.org/simple/feedparser/), version 5.0 doesn't match >=5.0.1,<5.1
Using version 5.0.1 (newest of versions: 5.0.1, 5.0.1, 5.0.1, 5.0.1, 5.0.1)
Downloading feedparser-5.0.1.tar.bz2 (204Kb): 204Kb downloaded
Davon steht bei
https://bitbucket.org/pypy/compatibilit ... feedparser nichts...
Also mal per Hand weiter machen, mal sehen wie weit man kommt:
Code: Alles auswählen
(pypy-env)~/pypy-env/bin$ ./pip install --verbose Django\>=1.3,\<1.4
(pypy-env)~/pypy-env/bin$ ./pip install --verbose python-creole django-dbpreferences django-tools
(pypy-env)~/pypy-env/bin$ ./pip install --verbose Pygments django-reversion django-dbtemplates django-tagging South
Alles für PyLucid installiert, bis auf den Feedparser. Ohne geht's erstmal auch
Code: Alles auswählen
# PyLucid Skripte symlinken:
(pypy-env)~/pypy-env/bin$ cd ..
(pypy-env)~/pypy-env$ ln src/pylucid/scripts/create_page_instance.sh .
# page instance erstellen
(pypy-env)~/pypy-env$ ./create_page_instance.sh ~/pypy_page/
Dann mal mit SQLite probieren (ist default bei create_page_instance.sh):
Code: Alles auswählen
(pypy-env)~/pypy-env/bin$ cd ~/pypy_page/
(pypy-env)~/pypy_page$ ./manage.py syncdb
Dabei tauchen viele Warnings von SQLite auf, wie:
Code: Alles auswählen
/home/jens/pypy-c-jit-43780-b590cf6de419-linux64/lib_pypy/_sqlite3.py:1031: RuntimeWarning: C function without declared arguments called
sqlite.sqlite3_finalize(self.statement)
/home/jens/pypy-c-jit-43780-b590cf6de419-linux64/lib_pypy/_sqlite3.py:1031: RuntimeWarning: C function without declared return type called
sqlite.sqlite3_finalize(self.statement)
Mal weiter machen:
Code: Alles auswählen
(pypy-env)~/pypy_page$ ./manage.py migrate
(pypy-env)~/pypy_page$ ./manage.py loaddata pylucid.json
Das sieht nicht gut aus, denn es kommen viele Warings, aber nicht die zu erwarteten Ausgaben, wie:
Code: Alles auswählen
Installing json fixture 'pylucid' from 'PyLucid_env/src/pylucid/pylucid_project/apps/pylucid_admin/fixtures'.
Installed 159 object(s) from 1 fixture(s)
Der Developer Server mal starten und nachsehen:
Sieht gut aus. Seite läuft...
Ein kleines Problem ist schon gefixed:
https://github.com/jedie/django-tools/c ... 4ddd6f8de8
sys.getsizeof(instance) wirft
TypeError: sys.getsizeof() not implemented on PyPy, wobei ich nur
AttributeError abgefangen hab...
Die unittests laufen eine ganze weile durch, dann gibt es aber einen
Speicherzugriffsfehler.