summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-06-02 14:07:46 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-02 20:42:27 +0000
commit6dafe80d19b75b1ea961bc7d3bfdac01b767397a (patch)
tree309b9ab8e7939fda99c8bf78916b618a35da485c
parentfacee04a59eae18b8d61d6c9e1d35c4f218b53d1 (diff)
downloadmongo-6dafe80d19b75b1ea961bc7d3bfdac01b767397a.tar.gz
SERVER-57366 venv_setup.sh should exit on pip errors
-rw-r--r--evergreen/functions/venv_setup.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/evergreen/functions/venv_setup.sh b/evergreen/functions/venv_setup.sh
index 0a901296aee..128adad9cfd 100644
--- a/evergreen/functions/venv_setup.sh
+++ b/evergreen/functions/venv_setup.sh
@@ -39,6 +39,11 @@ toolchain_txt="$pip_dir/toolchain-requirements.txt"
activate_venv
echo "Upgrading pip to 21.0.1"
-python -m pip install "pip==21.0.1"
-python -m pip install -r "$toolchain_txt" -q
+python -m pip --disable-pip-version-check install "pip==21.0.1" || exit 1
+python -m pip --disable-pip-version-check install -r "$toolchain_txt" -q --log install.log
+if [ $? != 0 ]; then
+ echo "Pip install error"
+ cat install.log
+ exit 1
+fi
python -m pip freeze >pip-requirements.txt