JDevlieghere created this revision.
JDevlieghere added a reviewer: LLDB.
Herald added a project: All.
JDevlieghere requested review of this revision.
Print an error message with instructions on how to install sphinx_automodapi.
https://reviews.llvm.org/D158022
Files:
lldb/docs/conf.py
Index: lldb/docs/conf.py
===================================================================
--- lldb/docs/conf.py
+++ lldb/docs/conf.py
@@ -49,6 +49,12 @@
# Unless we only generate the basic manpage we need the plugin for generating
# the Python API documentation.
if not building_man_page:
+ try:
+ import sphinx_automodapi.automodapi
+ except ModuleNotFoundError:
+ print(
+ f"install sphinx_automodapi with {sys.executable} -m pip install
sphinx_automodapi"
+ )
extensions.append("sphinx_automodapi.automodapi")
# Add any paths that contain templates here, relative to this directory.
Index: lldb/docs/conf.py
===================================================================
--- lldb/docs/conf.py
+++ lldb/docs/conf.py
@@ -49,6 +49,12 @@
# Unless we only generate the basic manpage we need the plugin for generating
# the Python API documentation.
if not building_man_page:
+ try:
+ import sphinx_automodapi.automodapi
+ except ModuleNotFoundError:
+ print(
+ f"install sphinx_automodapi with {sys.executable} -m pip install sphinx_automodapi"
+ )
extensions.append("sphinx_automodapi.automodapi")
# Add any paths that contain templates here, relative to this directory.
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits