Correctly handle failed pip/setuptools/wheel installs (#1007)

They are now displayed in the build output (instead of being sent to
`/dev/null`) and fail the build early instead of failing later in
`bin/steps/pip-install`.

Fixes #1002.
This commit is contained in:
Ed Morley
2020-07-29 01:49:47 +01:00
parent 60f2fac8e1
commit 00e70fffc9
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -135,6 +135,8 @@ if [ ! "$SKIP_INSTALL" ]; then
hash -r
fi
set -e
PIP_VERSION='20.0.2'
SETUPTOOLS_VERSION='39.0.1'
WHEEL_VERSION='0.34.2'
@@ -174,8 +176,7 @@ fi
puts-step "Installing pip ${PIP_VERSION}, setuptools ${SETUPTOOLS_VERSION} and wheel ${WHEEL_VERSION}"
/app/.heroku/python/bin/python "${PIP_WHEEL}/pip" install --disable-pip-version-check --no-cache \
"${PIP_TO_INSTALL}" "setuptools==${SETUPTOOLS_VERSION}" "wheel==${WHEEL_VERSION}" &> /dev/null
/app/.heroku/python/bin/python "${PIP_WHEEL}/pip" install --quiet --disable-pip-version-check --no-cache \
"${PIP_TO_INSTALL}" "setuptools==${SETUPTOOLS_VERSION}" "wheel==${WHEEL_VERSION}"
set -e
hash -r