How to make a pypy distribution?
I want to make binaries to pypy and distribute but I don't know how. The biggest problem is that I didn't find were I can change the 2 hardcoded sys.path entries (lib python and modified lib python). I would like it to look to a relative dir from where pypy-c is, or at least be able to hardcode it to something sensible (not my wc dir). Here is the scenario that I want to address: A self contained pypy, with pypy-c in pypy/bin and libs in pypy/lib or maybe pypy/lib/pypy (so instead of on its on directory it can be easily moved to /usr/local for example). I want to start to distribute a compiled version of pypy for macs (based on trunk). For people to have the biggest set of package to test on I am translating with this command line: ./translate.py --thread --stackless --gc=hybrid targetpypystandalone.py --allworkingmodules Do anyone think that there is a better set of options? (maybe -- gc=hybrid is not needed but I want to be sure never to try to use boehm) -- Leonardo Santagada santagada at gmail.com
Hi Leonardo, Leonardo Santagada wrote:
I want to make binaries to pypy and distribute but I don't know how. The biggest problem is that I didn't find were I can change the 2 hardcoded sys.path entries (lib python and modified lib python). I would like it to look to a relative dir from where pypy-c is, or at least be able to hardcode it to something sensible (not my wc dir). Here is the scenario that I want to address:
A self contained pypy, with pypy-c in pypy/bin and libs in pypy/lib or maybe pypy/lib/pypy (so instead of on its on directory it can be easily moved to /usr/local for example).
look at this: http://codespeak.net/pypy/dist/pypy/doc/getting-started-python.html#installa... basically, you could do something like this: /opt/pypy/bin/pypy-c /opt/pypy/lib-python/... /opt/pypy/pypy/lib/... or like this: /usr/local/bin/pypy /usr/local/share/pypy-1.1/lib-python/... /usr/local/share/pypy-1.1/pypy/lib/... ciao, Anto
On Mon, Jul 20, 2009 at 5:11 AM, Antonio Cuni <anto.cuni@gmail.com> wrote:
Hi Leonardo,
Leonardo Santagada wrote:
I want to make binaries to pypy and distribute but I don't know how. The biggest problem is that I didn't find were I can change the 2 hardcoded sys.path entries (lib python and modified lib python). I would like it to look to a relative dir from where pypy-c is, or at least be able to hardcode it to something sensible (not my wc dir). Here is the scenario that I want to address:
A self contained pypy, with pypy-c in pypy/bin and libs in pypy/lib or maybe pypy/lib/pypy (so instead of on its on directory it can be easily moved to /usr/local for example).
look at this:
http://codespeak.net/pypy/dist/pypy/doc/getting-started-python.html#installa...
basically, you could do something like this:
/opt/pypy/bin/pypy-c /opt/pypy/lib-python/... /opt/pypy/pypy/lib/...
or like this:
/usr/local/bin/pypy /usr/local/share/pypy-1.1/lib-python/... /usr/local/share/pypy-1.1/pypy/lib/...
ciao, Anto
I don't know how I missed that, thanks! I will do a fresh checkout and build from it tonight. -- Leonardo Santagada
participants (2)
-
Antonio Cuni
-
Leonardo Santagada