From e13a7cfac04ebffd865e3c3ca0ab8f95ba2c7696 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 21 Sep 2020 17:49:45 +0300 Subject: kbuild: Run documentation build in virtualenv To avoid depending on the sphinx version installed on the host, run the documentation build in a python virtual environment. Signed-off-by: Laurent Pinchart --- kbuild.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kbuild.sh b/kbuild.sh index 7aae1ed..d5bd3c6 100755 --- a/kbuild.sh +++ b/kbuild.sh @@ -178,7 +178,17 @@ fi # if [[ $do_compile_doc == 1 ]] ; then + ( + if [[ ! -f $PWD/output/doc/bin/activate ]] ; then + virtualenv $PWD/output/doc + source $PWD/output/doc/bin/activate + pip install -r Documentation/sphinx/requirements.txt + else + source $PWD/output/doc/bin/activate + fi + $pmake DOCBOOKS='' htmldocs + ) fi # -- cgit v1.2.3