]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: do not pass '--use-feature=2020-resolver' to pip 1644/head
authorKefu Chai <kchai@redhat.com>
Thu, 29 Apr 2021 14:43:14 +0000 (22:43 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Apr 2021 14:43:15 +0000 (22:43 +0800)
this reverts f2607ee8ce149f2951c5fd62c259fc4fa3ddcb5a

to silence the warning from pip:

WARNING: --use-feature=2020-resolver no longer has any effect, since it
is now the default dependency resolver in pip. This will become an error
in pip 21.0.

Signed-off-by: Kefu Chai <kchai@redhat.com>
bootstrap

index 4aef8198f698d7849fe9e0c78c681329261d5806..274bea9287ea60398627294eee024ac74163282c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -155,15 +155,8 @@ if [ -z "$NO_CLOBBER" ] || [ ! -e ./$VENV ]; then
     virtualenv --python=$PYTHON $VENV
 fi
 
-
-# be compatible with pip shipped by distro older v20.2
-if ./$VENV/bin/pip --use-feature=2020-resolver >/dev/null 2>&1 ; then
-    PIP_INSTALL="./$VENV/bin/pip install --use-feature=2020-resolver"
-else
-    PIP_INSTALL="./$VENV/bin/pip install"
-fi
 # Upgrade pip first - then we have a new pip version with the --use-feature flag
-$PIP_INSTALL --upgrade pip
+./$VENV/bin/pip install --upgrade pip
 
 # Ensure setuptools is installed
 ./$VENV/bin/pip install --use-feature=2020-resolver setuptools --upgrade