[fix] exit on failure of creating environment to avoid endless loop in this case

This commit is contained in:
Adam Tauber 2021-04-23 19:09:24 +02:00
parent f7706a5c7f
commit 4828faaa07

View File

@ -559,8 +559,8 @@ pyenv() {
pyenv.drop > /dev/null
build_msg PYENV "[virtualenv] installing ${PY_ENV_REQ} into ${PY_ENV}"
"${PYTHON}" -m venv "$@" "${PY_ENV}"
"${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}"
"${PYTHON}" -m venv "$@" "${PY_ENV}" || exit
"${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}" || exit
for i in ${PY_ENV_REQ}; do
pip_req=( "${pip_req[@]}" "-r" "$i" )