From: Brad Hubbard Date: Mon, 20 Sep 2021 04:42:41 +0000 (+1000) Subject: install-deps.sh: Use legacy pip resolver X-Git-Tag: v17.1.0~801^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c9ca523157f815bfdfdbdc1cec2349abfb016855;p=ceph.git install-deps.sh: Use legacy pip resolver 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 --- diff --git a/install-deps.sh b/install-deps.sh index 24fed0b33e33d..b07e53dd54e0d 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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 }