Skip to content

Commit 057cbc1

Browse files
committed
[doc] Install sphinx_autorun for the Jenkins doc build
conf.py enables the sphinx_autorun extension, but it is not part of the triqs base image (triqs itself does not use it) and was not installed by jenkins/Dockerfile, so the ubuntu-clang doc build failed with "Could not import extension sphinx_autorun". - Add python3-sphinx-autorun to the Jenkins image apt install - Add sphinx_autorun to the configure-time doc dependency check so a missing extension fails early with a clear message instead of midway through sphinx-build Assisted-by: Claude <noreply@anthropic.com>
1 parent 79af934 commit 057cbc1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Fail early if a doc dependency is missing (import names, not distribution names)
22
find_package(Python COMPONENTS Interpreter REQUIRED)
33

4-
foreach(_module numpydoc nbsphinx myst_parser linkify_it sphinx_rtd_theme matplotlib)
4+
foreach(_module numpydoc nbsphinx myst_parser linkify_it sphinx_rtd_theme matplotlib sphinx_autorun)
55
execute_process(
66
COMMAND ${Python_EXECUTABLE} -c "import ${_module}"
77
RESULT_VARIABLE _rc OUTPUT_QUIET ERROR_QUIET)

jenkins/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM flatironinstitute/triqs:unstable-ubuntu-clang
33

44
# Install missing system dependencies
5-
RUN apt-get update && apt-get install -y meson ninja-build python3-setuptools python3-skimage python3-tomli
5+
RUN apt-get update && apt-get install -y meson ninja-build python3-setuptools python3-skimage python3-tomli python3-sphinx-autorun
66

77
ENV OMP_NUM_THREADS=1
88

0 commit comments

Comments
 (0)