mirror of
https://github.com/kennethreitz-archive/python-versions.git
synced 2026-06-05 15:20:19 +00:00
15 lines
344 B
Bash
Executable File
15 lines
344 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Options: <output-dir>
|
|
|
|
OUT_PREFIX=$1
|
|
|
|
echo "Building libffi..."
|
|
./parts/libffi $OUT_PREFIX
|
|
|
|
echo "Building PyPy..."
|
|
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-linux64.tar.bz2'
|
|
curl -L $SOURCE_TARBALL | tar jx
|
|
mv pypy-2.0/* $OUT_PREFIX
|
|
rm -fr pypy-2.0
|
|
|
|
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python |