Commit 50642e70 authored by Kenneth Reitz's avatar Kenneth Reitz

check for fresh python before we try to run pip

parent 8349f291
...@@ -125,6 +125,7 @@ if [ ! "$SKIP_INSTALL" ]; then ...@@ -125,6 +125,7 @@ if [ ! "$SKIP_INSTALL" ]; then
# Record for future reference. # Record for future reference.
echo $PYTHON_VERSION > .heroku/python-version echo $PYTHON_VERSION > .heroku/python-version
WORKING_DIR=$(pwd) WORKING_DIR=$(pwd)
FRESH_PYTHON=true
hash -r hash -r
else else
...@@ -132,7 +133,7 @@ else ...@@ -132,7 +133,7 @@ else
fi fi
# If Pip isn't up to date: # If Pip isn't up to date:
if [[ ! $(pip --version) == *$PIP_VERSION* ]]; then if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
# Prepare it for the real world # Prepare it for the real world
puts-step "Installing Distribute ($DISTRIBUTE_VERSION)" puts-step "Installing Distribute ($DISTRIBUTE_VERSION)"
cd $ROOT_DIR/vendor/distribute-$DISTRIBUTE_VERSION/ cd $ROOT_DIR/vendor/distribute-$DISTRIBUTE_VERSION/
......
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