diff --git a/bin/compile b/bin/compile index a2baaf0389e6a9b72fb5ee80206503bcf759b66c..de80a94dd9896427cafcca03bfafd9f45d1ff1cd 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."