I'd like to run Django on PyPy JIT. Could you give me some instructions on how to do that? I couldn't really find any documentation in that area. Thanks. Andy
Hi, 2010/9/9 Andy <angelflow@yahoo.com>:
I'd like to run Django on PyPy JIT.
Could you give me some instructions on how to do that? I couldn't really find any documentation in that area.
I suggest to start with the obvious: - Install PyPy - download Django, unpack the archive - in the Django directory, run "pypy setup.py install" And tell us how it behaves! -- Amaury Forgeot d'Arc
--- On Thu, 9/9/10, Amaury Forgeot d'Arc <amauryfa@gmail.com> wrote:
I suggest to start with the obvious: - Install PyPy - download Django, unpack the archive - in the Django directory, run "pypy setup.py install" And tell us how it behaves!
Would this replace my existing Python interpretor with PyPy? I want to keep my existing Python. I'd like to have the option to choose either the standard CPython or PyPy. I could set up 2 vrtualenvs I suppose - 1 for CPython and 1 for PyPy. Does PyPy work with virtualenv?
On 9 September 2010 19:32, Andy <angelflow@yahoo.com> wrote:
--- On Thu, 9/9/10, Amaury Forgeot d'Arc <amauryfa@gmail.com> wrote:
I suggest to start with the obvious: - Install PyPy - download Django, unpack the archive - in the Django directory, run "pypy setup.py install" And tell us how it behaves!
Would this replace my existing Python interpretor with PyPy? I want to keep my existing Python.
Nope, the pypy interpreter is called pypy not python.
I'd like to have the option to choose either the standard CPython or PyPy. I could set up 2 vrtualenvs I suppose - 1 for CPython and 1 for PyPy. Does PyPy work with virtualenv?
There is definitely a version of virtualenv that works with pypy. It may even be included in pypy. All the best, Michael
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
On 09/09/10 20:32, Andy wrote:
Would this replace my existing Python interpretor with PyPy? I want to keep my existing Python.
well, no: if you run pypy setup.py install on whatever package, what happens is that you install this package in pypy's site-package directory instead of cpython's one.
I'd like to have the option to choose either the standard CPython or PyPy. I could set up 2 vrtualenvs I suppose - 1 for CPython and 1 for PyPy. Does PyPy work with virtualenv?
yes, pypy supports virtualenv but: 1) you need a pypy newer than pypy 1.3: you can build one by yourself from svn, or download one of our nightly builds: http://buildbot.pypy.org/nightly/trunk/ note that you probably want the one with -jit and -linux in it, which is a 32 bit executable. There is no pypy-jit for linux 64 bit yet (but it might be there soon). 2) you need a recent version of virtualenv, as pypy support has been added only recently (http://bitbucket.org/ianb/virtualenv/changeset/a03cb042dd81). AFAIK, no released version supports it, so you need to install/run it from the mercurial repository. ciao, Anto
Thanks Antonio. So right now there's no way to run PyPy JIT on Linux 64 bit? --- On Thu, 9/9/10, Antonio Cuni <anto.cuni@gmail.com> wrote:
From: Antonio Cuni <anto.cuni@gmail.com> Subject: Re: [pypy-dev] PyPy JIT and Django To: "Andy" <angelflow@yahoo.com> Cc: "Amaury Forgeot d'Arc" <amauryfa@gmail.com>, pypy-dev@codespeak.net Date: Thursday, September 9, 2010, 2:42 PM On 09/09/10 20:32, Andy wrote:
Would this replace my existing Python interpretor with PyPy? I want to keep my existing Python.
well, no: if you run pypy setup.py install on whatever package, what happens is that you install this package in pypy's site-package directory instead of cpython's one.
I'd like to have the option to choose either the standard CPython or PyPy. I could set up 2 vrtualenvs I suppose - 1 for CPython and 1 for PyPy. Does PyPy work with virtualenv?
yes, pypy supports virtualenv but:
1) you need a pypy newer than pypy 1.3: you can build one by yourself from svn, or download one of our nightly builds: http://buildbot.pypy.org/nightly/trunk/
note that you probably want the one with -jit and -linux in it, which is a 32 bit executable. There is no pypy-jit for linux 64 bit yet (but it might be there soon).
2) you need a recent version of virtualenv, as pypy support has been added only recently (http://bitbucket.org/ianb/virtualenv/changeset/a03cb042dd81). AFAIK, no released version supports it, so you need to install/run it from the mercurial repository.
ciao, Anto
On Thu, Sep 9, 2010 at 10:37 PM, Amaury Forgeot d'Arc <amauryfa@gmail.com> wrote:
2010/9/9 Andy <angelflow@yahoo.com>:
Thanks Antonio.
So right now there's no way to run PyPy JIT on Linux 64 bit?
Yes there is! Armin merged the asmgcc-64 branch yesterday. You have to use trunk version of PyPy, and build it yourself.
Although I would mark this support as "experimental" for now, it works :-)
-- Amaury Forgeot d'Arc _______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
participants (5)
-
Amaury Forgeot d'Arc -
Andy -
Antonio Cuni -
Maciej Fijalkowski -
Michael Foord