From b91741d10db65e4ca7fa13c166b2f4df24216205 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Mon, 2 Jun 2014 17:08:15 -0400
Subject: [PATCH] 3.1.x series

---
 builds/runtimes/python-3.1.0 | 17 +++++++++++++++++
 builds/runtimes/python-3.1.1 | 17 +++++++++++++++++
 builds/runtimes/python-3.1.2 | 17 +++++++++++++++++
 builds/runtimes/python-3.1.3 | 17 +++++++++++++++++
 builds/runtimes/python-3.1.4 | 17 +++++++++++++++++
 builds/runtimes/python-3.1.5 | 17 +++++++++++++++++
 6 files changed, 102 insertions(+)
 create mode 100755 builds/runtimes/python-3.1.0
 create mode 100755 builds/runtimes/python-3.1.1
 create mode 100755 builds/runtimes/python-3.1.2
 create mode 100755 builds/runtimes/python-3.1.3
 create mode 100755 builds/runtimes/python-3.1.4
 create mode 100755 builds/runtimes/python-3.1.5

diff --git a/builds/runtimes/python-3.1.0 b/builds/runtimes/python-3.1.0
new file mode 100755
index 00000000..effbf441
--- /dev/null
+++ b/builds/runtimes/python-3.1.0
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1/Python-3.1.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.1.1 b/builds/runtimes/python-3.1.1
new file mode 100755
index 00000000..bf5698af
--- /dev/null
+++ b/builds/runtimes/python-3.1.1
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1.1/Python-3.1.1.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1.1 src
+cd src
+
+./configure --prefix=$OUT_PREFIX  --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.1.2 b/builds/runtimes/python-3.1.2
new file mode 100755
index 00000000..2544ba26
--- /dev/null
+++ b/builds/runtimes/python-3.1.2
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1.2/Python-3.1.2.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1.2 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.1.3 b/builds/runtimes/python-3.1.3
new file mode 100755
index 00000000..7af8e662
--- /dev/null
+++ b/builds/runtimes/python-3.1.3
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1.3/Python-3.1.3.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1.3 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.1.4 b/builds/runtimes/python-3.1.4
new file mode 100755
index 00000000..e1050d97
--- /dev/null
+++ b/builds/runtimes/python-3.1.4
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1.4/Python-3.1.4.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1.4 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
diff --git a/builds/runtimes/python-3.1.5 b/builds/runtimes/python-3.1.5
new file mode 100755
index 00000000..f538d93c
--- /dev/null
+++ b/builds/runtimes/python-3.1.5
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/3.1.5/Python-3.1.5.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-3.1.5 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
+
+ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
-- 
GitLab