]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
install-deps.sh: ensure that pip ugrades to most recent version within virtualenv
authorLaura Flores <lflores@redhat.com>
Mon, 13 Sep 2021 21:38:09 +0000 (21:38 +0000)
committerLaura Flores <lflores@redhat.com>
Mon, 13 Sep 2021 21:47:37 +0000 (21:47 +0000)
Upon re-executing `install-deps.sh` recently, I got this error message:

```
You are using pip version 9.0.3, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
```

The issue was that pip was not up to date within the virtualenv that `install-deps.sh` sets up. Adding the line `python3 -m pip install --upgrade pip` right after the virtualenv is activated should help to ensure that pip is up to date in that context.

Signed-off-by: Laura Flores <lflores@redhat.com>
install-deps.sh

index c5dd7df5a94c87a7c082bbdd6d50112a6e22fda4..56f74a6795ea800b53a4dcde5fe5dfeb99708c5d 100755 (executable)
@@ -458,6 +458,7 @@ function preload_wheels_for_tox() {
     if test "$require" && ! test -d wheelhouse ; then
         type python3 > /dev/null 2>&1 || continue
         activate_virtualenv $top_srcdir || exit 1
+        python3 -m pip install --upgrade pip
         populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1
         mv $wip_wheelhouse wheelhouse
         md5sum $require_files $constraint_files > $md5