# Python version. This will be used in the future to specify custom Pythons.
# Python version. This will be used in the future to specify custom Pythons.
PYTHON_VERSION="2.7.2"
PYTHON_VERSION="2.7.2"
...
@@ -94,23 +98,39 @@ fi
...
@@ -94,23 +98,39 @@ fi
# Reject a Django app that appears to be packaged incorrectly.
# Reject a Django app that appears to be packaged incorrectly.
grep-Fiq"django" requirements.txt)&&[-f settings.py ]&&{ puts-warn "Django app must be in a package subdirectory";exit 1;}
grep-Fiq"django" requirements.txt)&&[-f settings.py ]&&{ puts-warn "Django app must be in a package subdirectory";exit 1;}
# Warn for a checked-in virtualenv.
# ### The Cache
if[-d"lib"]||[-d"bin"];then
mkdir-p$CACHE_DIR
puts-warn "You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.";
fi
# Reject a conflicting checked-in virtualenv.
# Nice defaults.
if[-f"lib/python2.7"];then
LEGACY_VIRTUALENV=false
puts-warn "Checked-in virtualenv conflict."
VIRTUALENV_LOC=$MODERN_VIRTUALENV_LOC
exit 1;
CACHE_DIRS ='.heroku'
fi
# Copy old artifacts out of the cache.
# Support "old-style" virtualenvs.
mkdir-p$CACHE_DIR
if[-f$CACHE_DIR/$LEGACY_VIRTUALENV_TRIGGER];do
for dir in$VIRTUALENV_DIRS;do
LEGACY_VIRTUALENV=true
VIRTUALENV_LOC=$LEGACY_VIRTUALENV_LOC
CACHE_DIRS =$LEGACY_VIRTUALENV_DIRS
# Warn for a checked-in virtualenv.
if[-d"lib"]||[-d"bin"];then
puts-warn "You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.";