From abb0c9b384d16470f42d24bb8b7db7c83fc3b47f Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Mon, 2 Jun 2014 14:49:11 -0400
Subject: [PATCH] Python 2.5.x series

---
 builds/runtimes/python-2.5.0 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.1 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.2 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.3 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.4 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.5 | 18 ++++++++++++++++++
 builds/runtimes/python-2.5.6 | 18 ++++++++++++++++++
 7 files changed, 126 insertions(+)
 create mode 100755 builds/runtimes/python-2.5.0
 create mode 100755 builds/runtimes/python-2.5.1
 create mode 100755 builds/runtimes/python-2.5.2
 create mode 100755 builds/runtimes/python-2.5.3
 create mode 100755 builds/runtimes/python-2.5.4
 create mode 100755 builds/runtimes/python-2.5.5
 create mode 100755 builds/runtimes/python-2.5.6

diff --git a/builds/runtimes/python-2.5.0 b/builds/runtimes/python-2.5.0
new file mode 100755
index 00000000..7b0296d8
--- /dev/null
+++ b/builds/runtimes/python-2.5.0
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5/Python-2.5.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.1 b/builds/runtimes/python-2.5.1
new file mode 100755
index 00000000..9fe96725
--- /dev/null
+++ b/builds/runtimes/python-2.5.1
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.1/Python-2.5.1.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.1 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.2 b/builds/runtimes/python-2.5.2
new file mode 100755
index 00000000..abd9b1f6
--- /dev/null
+++ b/builds/runtimes/python-2.5.2
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.2/Python-2.5.2.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.2 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.3 b/builds/runtimes/python-2.5.3
new file mode 100755
index 00000000..a6d2e0f8
--- /dev/null
+++ b/builds/runtimes/python-2.5.3
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.3/Python-2.5.3.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.3 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.4 b/builds/runtimes/python-2.5.4
new file mode 100755
index 00000000..6b311afe
--- /dev/null
+++ b/builds/runtimes/python-2.5.4
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.4/Python-2.5.4.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.4 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.5 b/builds/runtimes/python-2.5.5
new file mode 100755
index 00000000..305f7802
--- /dev/null
+++ b/builds/runtimes/python-2.5.5
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.6 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.5/Python-2.5.5.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.5 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
diff --git a/builds/runtimes/python-2.5.6 b/builds/runtimes/python-2.5.6
new file mode 100755
index 00000000..4a1eac15
--- /dev/null
+++ b/builds/runtimes/python-2.5.6
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Build Path: /app/.heroku/python/
+# Build Deps: libraries/sqlite
+
+OUT_PREFIX=$1
+
+# Protect 2.5 builds from parent Python (causes segfault during build).
+unset LANG PYTHONHOME PYTHONPATH
+
+echo "Building Python..."
+SOURCE_TARBALL='http://python.org/ftp/python/2.5.6/Python-2.5.6.tgz'
+curl -L $SOURCE_TARBALL | tar xz
+mv Python-2.5.6 src
+cd src
+
+./configure --prefix=$OUT_PREFIX --enable-shared
+make
+make install
-- 
GitLab