Skip to content
Snippets Groups Projects
Commit dec86fbc authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

explicitly error out on bad pip install

parent ddc31008
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,16 @@ puts-step "Installing dependencies with pip"
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
set +e
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --allow-all-external --disable-pip-version-check --no-cache-dir | cleanup | log-output | indent
if [[ "$?" ]]; then
echo "an error occurred."
exit
fi
set -e
# Smart Requirements handling
cp requirements.txt .heroku/python/requirements-declared.txt
/app/.heroku/python/bin/pip freeze > .heroku/python/requirements-installed.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment