]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
admin/build-doc: do not rebuild venv every time
authorSage Weil <sage@newdream.net>
Wed, 31 Mar 2021 18:44:23 +0000 (13:44 -0500)
committerSage Weil <sage@newdream.net>
Wed, 31 Mar 2021 18:58:16 +0000 (13:58 -0500)
Downside is you have to delete and re-run if the deps change.  The venv
install is suuuuper slow for me, though, so this is a win.

Signed-off-by: Sage Weil <sage@newdream.net>
admin/build-doc

index fd63db4daa7931edf3b4719ec1c438eac6248357..6738fc8f64f374674a8e680b4e615efdcafc843f 100755 (executable)
@@ -52,13 +52,13 @@ set -e
 
 if [ ! -e $vdir ]; then
     virtualenv --python=python3 $vdir
-fi
 
-$vdir/bin/pip install --quiet \
+    $vdir/bin/pip install --quiet \
               -r $TOPDIR/admin/doc-requirements.txt \
               -r $TOPDIR/admin/doc-python-common-requirements.txt
-BUILD_DOC=1 $vdir/bin/pip install --quiet \
+    BUILD_DOC=1 $vdir/bin/pip install --quiet \
          -r $TOPDIR/admin/doc-pybind.txt
+fi
 
 install -d -m0755 \
     $TOPDIR/build-doc/output/html \