]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
admin/build-doc: do not use system site-packages 32285/head
authorSage Weil <sage@redhat.com>
Mon, 16 Dec 2019 23:21:30 +0000 (17:21 -0600)
committerSage Weil <sage@redhat.com>
Tue, 17 Dec 2019 14:47:25 +0000 (08:47 -0600)
Don't use site-packages, since the host might have the same version, and
it won't have the ditaa and breathe.

Require Cython to make the venv sufficient.

Signed-off-by: Sage Weil <sage@redhat.com>
admin/build-doc
admin/doc-requirements.txt

index 0c2a3a70f158bcbc8637d823d483b681fdbd3d85..9c9a3c8d70a2ea9242c5ad65b9817f16643fc26e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 cd "$(dirname "$0")"
 cd ..
@@ -58,7 +58,7 @@ cd build-doc
 [ -z "$vdir" ] && vdir="$TOPDIR/build-doc/virtualenv"
 
 if [ ! -e $vdir ]; then
-    virtualenv --python=python3 --system-site-packages $vdir
+    virtualenv --python=python3 $vdir
 fi
 $vdir/bin/pip install --quiet -r $TOPDIR/admin/doc-requirements.txt
 
@@ -159,3 +159,5 @@ mkdir $JAVA_OUTDIR
 
 # Copy JavaDocs to target directory
 cp -a $JAVADIR/doc/* $JAVA_OUTDIR/
+
+echo "SUCCESS"
index 0af3bde9220c400679b20880b5bb2c4c13488cda..4a951d844e7ecddb206f828eaa2b5b0f552e7153 100644 (file)
@@ -2,3 +2,4 @@ Sphinx == 2.1.2
 git+https://github.com/ceph/sphinx-ditaa.git@py3#egg=sphinx-ditaa
 breathe == 4.13.1
 pyyaml >= 5.1.2
+Cython