From b39ffa8fa3c4d7a2c06327ac049c4c0ab29f9981 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 31 Jan 2012 00:09:10 -0500 Subject: [PATCH] when install fails, show the directory --- bin/compile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index cd78f00..dd0c27a 100755 --- a/bin/compile +++ b/bin/compile @@ -86,13 +86,19 @@ if (grep -Fiq "hg+" requirements.txt) then fi # Install dependencies. +set +e echo "-----> Installing dependencies using pip version $(pip --version | awk '{print $2}')" -env - - pip install --use-mirrors -r requirements.txt -v | indent +# If there's an error, purge and recreate. +[ $? -ne 0 ] && { + ls -a $BUILD_DIR/src/requests/ + exit 1 +} + +set -e + # Django support. if [ "$NAME" = "Python/Django" ]; then source $BIN_DIR/steps/django