From c2b9121436484aec3b4aba056ba1db8a2d0ad7ad Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Mon, 7 Dec 2015 16:12:24 -0500
Subject: [PATCH] New Pythons!

---
 builds/runtimes/python-2.7.11 | 15 +++++++++++++++
 builds/runtimes/python-3.5.1  | 18 ++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100755 builds/runtimes/python-2.7.11
 create mode 100755 builds/runtimes/python-3.5.1

diff --git a/builds/runtimes/python-2.7.11 b/builds/runtimes/python-2.7.11
new file mode 100755
index 00000000..4e60fed2
--- /dev/null
+++ b/builds/runtimes/python-2.7.11
@@ -0,0 +1,15 @@
+#!/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/2.7.11/Python-2.7.11.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.7.11 src
+cd src
+
+./configure --prefix=$OUT_PREFIX  --with-ensurepip=no
+make
+make install
diff --git a/builds/runtimes/python-3.5.1 b/builds/runtimes/python-3.5.1
new file mode 100755
index 00000000..08300a94
--- /dev/null
+++ b/builds/runtimes/python-3.5.1
@@ -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.1/Python-3.5.1.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.5.1 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