From 86f7097ec6d542a6e649461e1282ed3d2319310b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 31 Oct 2022 16:40:49 -0500 Subject: [PATCH] PYTHON-3498 Error installing virtual environment on zseries hosts (#1101) (cherry picked from commit b6982e85f5264daf5ba766a8d1678b1f966d0d2a) --- .evergreen/utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.evergreen/utils.sh b/.evergreen/utils.sh index 67fa272683..30013ed06b 100755 --- a/.evergreen/utils.sh +++ b/.evergreen/utils.sh @@ -18,7 +18,8 @@ createvirtualenv () { echo "Cannot test without virtualenv" exit 1 fi - $VIRTUALENV $VENVPATH + # Workaround for bug in older versions of virtualenv. + $VIRTUALENV $VENVPATH || $PYTHON -m venv $VENVPATH if [ "Windows_NT" = "$OS" ]; then # Workaround https://bugs.python.org/issue32451: # mongovenv/Scripts/activate: line 3: $'\r': command not found