From: Laura Flores Date: Mon, 13 Sep 2021 21:38:09 +0000 (+0000) Subject: install-deps.sh: ensure that pip ugrades to most recent version within virtualenv X-Git-Tag: v18.0.0~298^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=edeee3f6a46e5ba1f69bcb3ecfc2e92937c02169;p=ceph-ci.git 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 --- diff --git a/install-deps.sh b/install-deps.sh index c5dd7df5a94..56f74a6795e 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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