]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: use pip --use-feature=2020-resolver 1563/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 14:26:50 +0000 (22:26 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Sep 2020 14:27:03 +0000 (22:27 +0800)
follow the suggestion from pip

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

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

index ee5f93256dac214f1a2d14a1b7355f0e7d54b963..b2bae3cd82fcfac7eca692c8b7e8c8b61246646a 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -157,13 +157,13 @@ fi
 
 
 # Upgrade pip first
-./$VENV/bin/pip install --upgrade pip
+./$VENV/bin/pip install --use-feature=2020-resolver --upgrade pip
 
 # Ensure setuptools is installed
-./$VENV/bin/pip install setuptools --upgrade
+./$VENV/bin/pip install --use-feature=2020-resolver setuptools --upgrade
 
 # Install all requirements
-./$VENV/bin/pip install --upgrade -r requirements.txt
+./$VENV/bin/pip install --use-feature=2020-resolver --upgrade -r requirements.txt
 
 # Check to make sure requirements are met
 ./$VENV/bin/pip check