Commit ab05b616 authored by Kenneth Reitz's avatar Kenneth Reitz

stack changed, delete things

parent 5c4a414c
...@@ -148,6 +148,16 @@ mkdir -p $(dirname $PROFILE_PATH) ...@@ -148,6 +148,16 @@ mkdir -p $(dirname $PROFILE_PATH)
set +e set +e
PYTHON_VERSION=$(cat runtime.txt) PYTHON_VERSION=$(cat runtime.txt)
rm -fr .heroku/python
if [ ! $STACK = $CACHED_PYTHON_STACK ]; then
bpwatch start uninstall_python
puts-step "Stack changed, re-installing $PYTHON_VERSION."
rm -fr .heroku/python
bpwatch stop uninstall_python
else
SKIP_INSTALL=1
fi
# Install Python. # Install Python.
if [ -f .heroku/python-version ]; then if [ -f .heroku/python-version ]; then
if [ ! $(cat .heroku/python-version) = $PYTHON_VERSION ]; then if [ ! $(cat .heroku/python-version) = $PYTHON_VERSION ]; then
...@@ -170,7 +180,7 @@ if [ ! "$SKIP_INSTALL" ]; then ...@@ -170,7 +180,7 @@ if [ ! "$SKIP_INSTALL" ]; then
curl http://lang-python.s3.amazonaws.com/cedar-14/runtimes/$PYTHON_VERSION.tar.gz -s | tar zxv -C .heroku/python &> /dev/null curl http://lang-python.s3.amazonaws.com/cedar-14/runtimes/$PYTHON_VERSION.tar.gz -s | tar zxv -C .heroku/python &> /dev/null
if [[ $? != 0 ]] ; then if [[ $? != 0 ]] ; then
puts-warn "Requested runtime ($PYTHON_VERSION) was not found." puts-warn "Requested runtime ($PYTHON_VERSION) is not available on the $STACK stack."
puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support" puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment