summaryrefslogtreecommitdiffstats
path: root/install-deps.sh
diff options
context:
space:
mode:
authorLaura Flores <lflores@redhat.com>2021-09-13 23:38:09 +0200
committerLaura Flores <lflores@redhat.com>2021-09-13 23:47:37 +0200
commitedeee3f6a46e5ba1f69bcb3ecfc2e92937c02169 (patch)
treec5888093959ad8356c7cb749787d20318a2c7b4c /install-deps.sh
parentMerge pull request #43104 from ceph/e2e-tests-documentation (diff)
downloadceph-edeee3f6a46e5ba1f69bcb3ecfc2e92937c02169.tar.xz
ceph-edeee3f6a46e5ba1f69bcb3ecfc2e92937c02169.zip
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>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-xinstall-deps.sh1
1 files changed, 1 insertions, 0 deletions
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