mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
sticky python versions bugfix
This commit is contained in:
+2
-3
@@ -103,11 +103,10 @@ if [ ! -f requirements.txt ]; then
|
||||
fi
|
||||
|
||||
# Sticky runtimes.
|
||||
if [ -f .heroku/python-version ]; then
|
||||
DEFAULT_PYTHON_VERSION=$(cat .heroku/python-version)
|
||||
if [ -f $CACHE_DIR/.heroku/python-version ]; then
|
||||
DEFAULT_PYTHON_VERSION=$(cat $CACHE_DIR/.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."
|
||||
|
||||
Reference in New Issue
Block a user