on master help sign in
[fix] exit on failure of creating environment to avoid endless loop in this case
4828faaAdam Tauber
utils/lib.sh+2−2
@@ -559,8 +559,8 @@ pyenv() {
559 pyenv.drop > /dev/null
559 pyenv.drop > /dev/null
560 build_msg PYENV "[virtualenv] installing ${PY_ENV_REQ} into ${PY_ENV}"
560 build_msg PYENV "[virtualenv] installing ${PY_ENV_REQ} into ${PY_ENV}"
561
561
562− "${PYTHON}" -m venv "$@" "${PY_ENV}"
562+ "${PYTHON}" -m venv "$@" "${PY_ENV}" || exit
563− "${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}"
563+ "${PY_ENV_BIN}/python" -m pip install -U "${PIP_BOILERPLATE[@]}" || exit
564
564
565 for i in ${PY_ENV_REQ}; do
565 for i in ${PY_ENV_REQ}; do
566 pip_req=( "${pip_req[@]}" "-r" "$i" )
566 pip_req=( "${pip_req[@]}" "-r" "$i" )