]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils: Start using pip 20.3.4 instead of 10.0.0 1775/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 18 Mar 2021 19:09:20 +0000 (15:09 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 18 Mar 2021 20:29:03 +0000 (16:29 -0400)
Started seeing
```
+ /tmp/venv.ivc8u2qcCO/bin/pip install --no-binary=:all: --upgrade --exists-action=i --find-links=file:///home/jenkins-build/.cache/pip --no-index 'jenkins-job-builder>=3.5.0'
Looking in links: file:///home/jenkins-build/.cache/pip
Collecting jenkins-job-builder>=3.5.0
Collecting six>=1.9.0 (from jenkins-job-builder>=3.5.0)
Collecting PyYAML<6,>=3.10.0 (from jenkins-job-builder>=3.5.0)
  Could not find a version that satisfies the requirement wheel (from versions: )
No matching distribution found for wheel
```

Even 21.0.1 on Ubuntu 16.04 was failing.  It's just time to pin a newer version.

Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/build_utils.sh

index 62541041832370377884d4c553b0fcad8e8b059d..19812b5c15b9622832c4b84bb5686f0fad7e472e 100644 (file)
@@ -110,7 +110,7 @@ install_python_packages_no_binary () {
     # the virtualenv exists it will get re-used since this function can be used
     # along with install_python_packages
     #
-    # Usage (with pip 10.0.0 [the default]):
+    # Usage (with pip==20.3.4 [the default]):
     #
     #   to_install=( "ansible" "chacractl>=0.0.21" )
     #   install_python_packages_no_binary "to_install[@]"
@@ -134,6 +134,7 @@ install_python_packages_no_binary () {
     # We started pinning pip to 10.0.0 as the default to prevent mismatching
     # versions on non-ephemeral slaves.  Some jobs require different or latest
     # pip though so these if statements allow for that.
+    # Updated to 20.3.4 in March 2021 because 10.0.0 is just too old.
     if [ "$2" == "latest" ]; then
         echo "Ensuring latest pip is installed"
         $VENV/pip install -U pip
@@ -143,8 +144,8 @@ install_python_packages_no_binary () {
     else
         # This is the default for most jobs.
         # See ff01d2c5 and fea10f52
-        echo "Installing pip 10.0.0"
-        $VENV/pip install "pip==10.0.0"
+        echo "Installing pip 20.3.4"
+        $VENV/pip install "pip==20.3.4"
     fi
 
     echo "Updating setuptools"
@@ -165,7 +166,7 @@ install_python_packages () {
     # Use this function to create a virtualenv and install
     # python packages. Pass a list of package names.
     #
-    # Usage (with pip 10.0.0 [the default]):
+    # Usage (with pip 20.3.4 [the default]):
     #
     #   to_install=( "ansible" "chacractl>=0.0.21" )
     #   install_python_packages "to_install[@]"
@@ -189,6 +190,7 @@ install_python_packages () {
     # We started pinning pip to 10.0.0 as the default to prevent mismatching
     # versions on non-ephemeral slaves.  Some jobs require different or latest
     # pip though so these if statements allow for that.
+    # Updated to 20.3.4 in March 2021 because 10.0.0 is just too old.
     if [ "$2" == "latest" ]; then
         echo "Ensuring latest pip is installed"
         $VENV/pip install -U pip
@@ -198,8 +200,8 @@ install_python_packages () {
     else
         # This is the default for most jobs.
         # See ff01d2c5 and fea10f52
-        echo "Installing pip 10.0.0"
-        $VENV/pip install "pip==10.0.0"
+        echo "Installing pip 20.3.4"
+        $VENV/pip install "pip==20.3.4"
     fi
 
     echo "Updating setuptools"