install-deps.sh: ensure that pip ugrades to most recent version within virtualenv

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>
This commit is contained in:
Laura Flores 2021-09-13 21:38:09 +00:00
parent 77d703da2b
commit edeee3f6a4

View File

@ -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