From 50642e7069e546a47edad0088499d451506f0558 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Thu, 7 Mar 2013 21:00:01 -0500 Subject: [PATCH] check for fresh python before we try to run pip --- bin/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 490dffc1..38062d59 100755 --- a/bin/compile +++ b/bin/compile @@ -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/ -- GitLab