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
# Record for future reference.
echo $PYTHON_VERSION > .heroku/python-version
WORKING_DIR=$(pwd)
FRESH_PYTHON=true
hash -r
else
......@@ -132,7 +133,7 @@ else
fi
# 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
puts-step "Installing 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