]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build-doc: Upgrade ceph python libraries 20726/head
authorBoris Ranto <branto@redhat.com>
Mon, 5 Mar 2018 21:46:37 +0000 (22:46 +0100)
committerBoris Ranto <branto@redhat.com>
Mon, 5 Mar 2018 21:46:39 +0000 (22:46 +0100)
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 <branto@redhat.com>
admin/build-doc

index b68f62955ab36fca97d59f775d48ee0e04a16147..283f8aa7524627f3725e31835a1f8ce09e0b3b94 100755 (executable)
@@ -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