From 8f4ca7f6244f7b692e02af2b9631c9d497aa8d55 Mon Sep 17 00:00:00 2001
From: cclauss <cclauss@bluewin.ch>
Date: Tue, 22 Sep 2015 12:12:19 +0200
Subject: [PATCH] Python 3.5.0 and Pypy 2.6.1

Added python-3.5.0
Added pypy-2.6.1
Updated Readme.md
---
 Readme.md                    | 10 +++++-----
 builds/runtimes/pypy-2.6.1   | 14 ++++++++++++++
 builds/runtimes/python-3.5.0 | 18 ++++++++++++++++++
 3 files changed, 37 insertions(+), 5 deletions(-)
 create mode 100755 builds/runtimes/pypy-2.6.1
 create mode 100755 builds/runtimes/python-3.5.0

diff --git a/Readme.md b/Readme.md
index a54cadcd..d6591f80 100644
--- a/Readme.md
+++ b/Readme.md
@@ -17,7 +17,7 @@ Example usage:
     $ git push heroku master
     ...
     -----> Python app detected
-    -----> Installing runtime (python-2.7.9)
+    -----> Installing runtime (python-2.7.10)
     -----> Installing dependencies using pip
            Downloading/unpacking requests (from -r requirements.txt (line 1))
            Installing collected packages: requests
@@ -40,13 +40,13 @@ Specify a Runtime
 You can also provide arbitrary releases Python with a `runtime.txt` file.
 
     $ cat runtime.txt
-    python-3.4.3
+    python-3.5.0
 
 Runtime options include:
 
-- python-2.7.9
-- python-3.4.3
-- pypy-2.4.0 (unsupported, experimental)
+- python-2.7.10
+- python-3.5.0
+- pypy-2.6.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-2.6.1 b/builds/runtimes/pypy-2.6.1
new file mode 100755
index 00000000..063d59b5
--- /dev/null
+++ b/builds/runtimes/pypy-2.6.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-2.6.1-linux64.tar.bz2'
+curl -L $SOURCE_TARBALL | tar jx
+cp -R pypy-2.6.1-linux64/* $OUT_PREFIX
+
+ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.5.0 b/builds/runtimes/python-3.5.0
new file mode 100755
index 00000000..b0e33b1b
--- /dev/null
+++ b/builds/runtimes/python-3.5.0
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='https://python.org/ftp/python/3.5.0/Python-3.5.0.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.5.0 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --with-ensurepip=no --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
+
-- 
GitLab