From d47970fd81c8cc91d260843c6820e3c977327de1 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Fri, 17 Jan 2014 16:47:55 -0800
Subject: [PATCH] sticky runtimes

---
 bin/compile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/bin/compile b/bin/compile
index a2baaf03..de80a94d 100755
--- a/bin/compile
+++ b/bin/compile
@@ -25,8 +25,7 @@ VIRTUALENV_LOC=".heroku/venv"
 LEGACY_TRIGGER="lib/python2.7"
 PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
 
-# Python version. This will be used in the future to specify custom Pythons.
-DEFAULT_PYTHON_VERSION="python-2.7.4"
+DEFAULT_PYTHON_VERSION="python-2.7.6"
 PYTHON_EXE="/app/.heroku/python/bin/python"
 PIP_VERSION="1.3.1"
 DISTRIBUTE_VERSION="0.6.36"
@@ -103,6 +102,12 @@ if [ ! -f requirements.txt ]; then
   echo "-e ." > requirements.txt
 fi
 
+# Sticky runtimes.
+if [ -f .heroku/python-version ]; then
+  DEFAULT_PYTHON_VERSION=$(cat .heroku/python-version)
+fi
+
+
 # If no runtime given, assume default version.
 if [ ! -f runtime.txt ]; then
   puts-step "No runtime.txt provided; assuming $DEFAULT_PYTHON_VERSION."
-- 
GitLab