Skip to content
Snippets Groups Projects
Commit 3a42f565 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

change the order of things

parent 8f1942a9
No related branches found
No related tags found
No related merge requests found
...@@ -148,16 +148,6 @@ mkdir -p $(dirname $PROFILE_PATH) ...@@ -148,16 +148,6 @@ 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,6 +160,13 @@ if [ -f .heroku/python-version ]; then ...@@ -170,6 +160,13 @@ if [ -f .heroku/python-version ]; then
fi fi
fi fi
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
fi
if [ ! "$SKIP_INSTALL" ]; then if [ ! "$SKIP_INSTALL" ]; then
bpwatch start install_python bpwatch start install_python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment