From c9ca523157f815bfdfdbdc1cec2349abfb016855 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Mon, 20 Sep 2021 14:42:41 +1000 Subject: [PATCH] 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 --- install-deps.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.39.5