[rtems-docs commit] waf: User friendly message when no sphinx is installed

Chris Johns chrisj at rtems.org
Fri Apr 3 00:12:04 UTC 2020


Module:    rtems-docs
Branch:    master
Commit:    d514e3308e908da244f7b60f39c55cd826f1ad6d
Changeset: http://git.rtems.org/rtems-docs/commit/?id=d514e3308e908da244f7b60f39c55cd826f1ad6d

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Apr  3 11:09:47 2020 +1100

waf: User friendly message when no sphinx is installed

---

 common/waf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/waf.py b/common/waf.py
index 36feef5..7027eb6 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -87,6 +87,9 @@ class linkcheck(BuildContext):
 def check_sphinx_version(ctx, minver):
     try:
         import sphinx
+    except:
+        ctx.fatal('no sphinx support found; please install')
+    try:
         # sphinx.version_info was introduced in sphinx ver 1.2
         version = sphinx.version_info
         # version looks like (1, 7, 0, 'final', 0))



More information about the vc mailing list