summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2020-12-07 10:23:37 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-10 21:49:33 +0000
commit719e81b31715239248e786fa1545ad6e30099b54 (patch)
tree33daa4c8d0a59489f44b11fb78717f2fe1290607
parent356ad03a6d3a05daa96122c7c39bf7f87f826cb6 (diff)
downloadmongo-719e81b31715239248e786fa1545ad6e30099b54.tar.gz
SERVER-53250 use pip legacy resolver to fix pip hangs on static builders
(cherry picked from commit 4ba4acbe4a16e18af4b59eed59686902806b8f49)
-rw-r--r--etc/evergreen.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index f332461b4b7..02a36a7a470 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -1207,7 +1207,21 @@ functions:
# Windows path separator
toolchain_txt="$pip_dir/toolchain-requirements.txt"
${activate_virtualenv}
- python -m pip install -r "$toolchain_txt" -q
+ pip_resolver=""
+ # Upgrade pip only on x86_64 systems. The upgraded pip is incompatible
+ # with older versions of setuptools, including those available on
+ # s390x, and arm64. See SERVER-53250
+ uname_arch=$(uname -m || echo "unknown")
+ if [[ "$uname_arch" == "x86_64" ]]; then
+ echo "Upgrading pip to 20.3.1"
+ python -m pip install "pip==20.3.1"
+ # this flag is only supported on the 20.x versions of pip.
+ pip_resolver="--use-deprecated=legacy-resolver"
+ echo "Upgraded pip to 20.3.1, using legacy resolver"
+ else
+ echo "Skipping pip upgrade, architecture was: $uname_arch"
+ fi
+ python -m pip install $pip_resolver -r "$toolchain_txt" -q
python -m pip freeze > pip-requirements.txt
"upload pip requirements": &upload_pip_requirements