]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: Use legacy pip resolver 43221/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 20 Sep 2021 04:42:41 +0000 (14:42 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 24 Sep 2021 00:16:28 +0000 (10:16 +1000)
Due to the issue described in https://github.com/pypa/pip/issues/9818 I
am seeing lots of downloads and prolonged runtime when installing
dependencies.

Fixes: https://tracker.ceph.com/issues/52660
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
install-deps.sh

index 24fed0b33e33d3a6807fbbc8d29ff4596527da7c..b07e53dd54e0df79e11791fd0290e5cc8b52d5a6 100755 (executable)
@@ -421,7 +421,10 @@ function populate_wheelhouse() {
     pip $PIP_OPTS $install \
       'setuptools >= 0.8' 'pip >= 21.0' 'wheel >= 0.24' 'tox >= 2.9.1' || return 1
     if test $# != 0 ; then
-        pip $PIP_OPTS $install $@ || return 1
+        # '--use-feature=fast-deps --use-deprecated=legacy-resolver' added per
+        # https://github.com/pypa/pip/issues/9818 These should be able to be
+        # removed at some point in the future.
+        pip --use-feature=fast-deps --use-deprecated=legacy-resolver $PIP_OPTS $install $@ || return 1
     fi
 }