when install fails, show the directory

This commit is contained in:
Kenneth Reitz
2012-01-31 00:09:10 -05:00
parent 0b1926f089
commit b39ffa8fa3
+9 -3
View File
@@ -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