Explicitly set PYTHONPATH to the sourcedir when building the documentation

This avoids:

    ModuleNotFoundError: No module named 'breathe'
This commit is contained in:
Miro Hrončok 2021-06-07 15:59:01 +02:00
parent 4b03510e8c
commit 4bbf5b82dd

View File

@ -58,7 +58,7 @@ This package contains documentation for developer documentation for %{srcname}.
%build
%py3_build
# Build the documentation
%make_build DOXYGEN=$(which doxygen) html
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
# Remove temporary build files
rm documentation/build/html/.buildinfo