From 2a6053ec2ce0162fad0a304e9f657fa02d253108 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 29 Nov 2015 16:23:12 +0100 Subject: [PATCH] pypy-4.0.1 http://morepypy.blogspot.com --- Readme.md | 2 +- builds/runtimes/pypy-4.0.1 | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 builds/runtimes/pypy-4.0.1 diff --git a/Readme.md b/Readme.md index d742b03..7891ed7 100644 --- a/Readme.md +++ b/Readme.md @@ -48,7 +48,7 @@ Runtime options include: - python-2.7.10 - python-3.5.0 -- pypy-2.6.1 (unsupported, experimental) +- pypy-4.0.1 (unsupported, experimental) - pypy3-2.4.0 (unsupported, experimental) Other [unsupported runtimes](https://github.com/heroku/heroku-buildpack-python/tree/master/builds/runtimes) are available as well. diff --git a/builds/runtimes/pypy-4.0.1 b/builds/runtimes/pypy-4.0.1 new file mode 100755 index 0000000..1e959aa --- /dev/null +++ b/builds/runtimes/pypy-4.0.1 @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Build Path: /app/.heroku/python/ +# Build Deps: libraries/sqlite + +# NOTICE: This formula only works for the cedar-14 stack, not cedar. + +OUT_PREFIX=$1 + +echo "Building PyPy..." +SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.1-linux64.tar.bz2' +curl -L $SOURCE_TARBALL | tar jx +cp -R pypy-4.0.1-linux64/* $OUT_PREFIX + +ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python