]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/setup-virtualenv.sh: do not pass --use-feature=2020-resolver to pip
authorKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2021 12:12:22 +0000 (20:12 +0800)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 29 Jan 2021 12:42:38 +0000 (13:42 +0100)
pip use the new resolver by default now. so no need to pass this option
to it anymore.

This reverts commit fa9e2bfd4b3648f08ed3a88ce737d432ab97cce1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit cb2de05a39b28342fdf44688cd0d1c3e424a02ff)

src/tools/setup-virtualenv.sh

index f799784b45141bf2437d93a919e37a561108dded..af945e2c5a46fba68beb2aca06aadebbf3fac297 100755 (executable)
@@ -66,17 +66,9 @@ else
     DISABLE_PIP_VERSION_CHECK=
 fi
 
-if pip --help | grep -q use-feature; then
-    USE_FEATURE=--use-feature=2020-resolver
-else
-    USE_FEATURE=
-fi
-
 # older versions of pip will not install wrap_console scripts
 # when using wheel packages
-pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install \
-    $USE_FEATURE \
-    --upgrade 'pip >= 6.1'
+pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install --upgrade 'pip >= 6.1'
 
 if pip --help | grep -q disable-pip-version-check; then
     DISABLE_PIP_VERSION_CHECK=--disable-pip-version-check
@@ -88,10 +80,7 @@ if test -d wheelhouse ; then
     export NO_INDEX=--no-index
 fi
 
-pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install \
-    $USE_FEATURE \
-    $NO_INDEX \
-    --find-links=file://$(pwd)/wheelhouse 'tox >=2.9.1'
+pip $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install $NO_INDEX --find-links=file://$(pwd)/wheelhouse 'tox >=2.9.1'
 
 require_files=$(ls *requirements*.txt 2>/dev/null) || true
 constraint_files=$(ls *constraints*.txt 2>/dev/null) || true
@@ -102,8 +91,6 @@ if test "$require"; then
     if ! test -f $md5 || ! md5sum -c wheelhouse/md5 > /dev/null; then
         NO_INDEX=''
     fi
-    pip --exists-action i $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install \
-        $USE_FEATURE \
-        $NO_INDEX \
-        --find-links=file://$(pwd)/wheelhouse $require $constraint
+    pip --exists-action i $DISABLE_PIP_VERSION_CHECK --log $DIR/log.txt install $NO_INDEX \
+      --find-links=file://$(pwd)/wheelhouse $require $constraint 
 fi