[Lldb-commits] [PATCH] D158022: [lldb] Print an actionable error message when sphinx_automodapi is not installed
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 16 09:15:06 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5afa519c1ae9: [lldb] Print better error message when sphinx_automodapi is not installed (authored by JDevlieghere).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158022/new/
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158022.550785.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230816/0d4f00c9/attachment.bin>
More information about the lldb-commits
mailing list