Skip to content

Commit

Permalink
admin/build-doc: do not use system site-packages
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
liewegas committed Dec 17, 2019
1 parent 0172dab commit 92595f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/build-doc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e

cd "$(dirname "$0")"
cd ..
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -159,3 +159,5 @@ mkdir $JAVA_OUTDIR

# Copy JavaDocs to target directory
cp -a $JAVADIR/doc/* $JAVA_OUTDIR/

echo "SUCCESS"
1 change: 1 addition & 0 deletions admin/doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 92595f3

Please sign in to comment.