[pypy-dev] Newbie question: using PyPy to compile the source

Armin Rigo arigo at tunes.org
Sun May 5 11:28:07 CEST 2013


On Sun, May 5, 2013 at 11:12 AM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>> Doesn't PyPy have a "compile to binary" option? I thought it did, but I
>> may be mistaken.
> It does not.

It does, in a way, but it's not an option available for the user on a
single function at a time.  The confusion comes from the RPython
translator toolchain.  This is how we produce PyPy, by translating
into a binary the *whole* complete source code of PyPy (which is
written in RPython, not in Python).  There is no support to compile a
single RPython function at a time --- or rather, there is, for our own
testing purposes, but there is no reasonable way to integrate the
result with the rest of your running Python code.

As others have pointed out, you should not have to worry about it
anyway because we have a JIT for full Python code.

A bientôt,


More information about the pypy-dev mailing list