]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
admin/build-doc: stop passing --use-feature=2020-resolver to pip
authorKefu Chai <kchai@redhat.com>
Sat, 12 Dec 2020 07:19:40 +0000 (15:19 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 30 Mar 2021 09:44:59 +0000 (17:44 +0800)
to silence the warning of

WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.

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

Conflicts:
admin/build-doc: trivial resolution

admin/build-doc

index aa8baae6c34d5a86a611704d860c9a997e3e7660..c38208e8439fb2ffd03427a1f2459207f45291dd 100755 (executable)
@@ -59,7 +59,11 @@ cd build-doc
 if [ ! -e $vdir ]; then
     virtualenv --python=python3 $vdir
 fi
-$vdir/bin/pip install --use-feature=2020-resolver --quiet -r $TOPDIR/admin/doc-requirements.txt -r $TOPDIR/admin/doc-python-common-requirements.txt
+
+$vdir/bin/pip install --quiet --upgrade pip setuptools
+$vdir/bin/pip install --quiet \
+              -r $TOPDIR/admin/doc-requirements.txt \
+              -r $TOPDIR/admin/doc-python-common-requirements.txt
 
 install -d -m0755 \
     $TOPDIR/build-doc/output/html \