From 93cd09810338a6c51c8ac9b80ad7840f8341abc0 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Mon, 5 Mar 2018 22:46:37 +0100 Subject: [PATCH] build-doc: Upgrade ceph python libraries If you have python ceph bindings installed on your system, the doc-build script will fail since pip detects them and fails to install the updated bindings in the virtualenv. This fixes the issue by adding --upgrade flag to pip so that it overrides the system-installed libraries. Signed-off-by: Boris Ranto --- admin/build-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/build-doc b/admin/build-doc index b68f62955ab..283f8aa7524 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -86,7 +86,7 @@ for bind in rados rbd cephfs rgw; do CFLAGS="-iquote$TOPDIR/src/include" \ CPPFLAGS="-iquote$TOPDIR/src/include" \ LDFLAGS="-L$vdir/lib -Wl,--no-as-needed" \ - $vdir/bin/pip install $TOPDIR/src/pybind/${bind} + $vdir/bin/pip install --upgrade $TOPDIR/src/pybind/${bind} # rgwfile_version(), librgw_create(), rgw_mount() # since py3.5, distutils adds postfix in between ${bind} and so lib_fn=$vdir/lib/python*/*-packages/${bind}.*.so -- 2.47.3