]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
admin/build-doc: upgrade pip setuptools first 38544/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Dec 2020 16:22:37 +0000 (00:22 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Dec 2020 16:23:32 +0000 (00:23 +0800)
on certain distros, buggy pip and setuptools are used, so we need to
upgrade them first.

see also: googleapis/google-cloud-python#2990 and pypa/setuptools#885

Signed-off-by: Kefu Chai <kchai@redhat.com>
admin/build-doc

index a5c4d41514da8aa7123bd032fc6b21f8ca67d6aa..a337acba0a7b2f3b0961ac68c4dfd5d4012f77d6 100755 (executable)
@@ -62,6 +62,7 @@ if $vdir/bin/pip --use-feature=2020-resolver >/dev/null 2>&1 ; then
 else
     PIP_INSTALL="$vdir/bin/pip install"
 fi
+$PIP_INSTALL --quiet --upgrade pip setuptools
 $PIP_INSTALL --quiet -r $TOPDIR/admin/doc-requirements.txt -r $TOPDIR/admin/doc-python-common-requirements.txt
 
 install -d -m0755 \