mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-02 12:58:11 +08:00
waf: User friendly message when no sphinx is installed
This commit is contained in:
parent
3f1622e40e
commit
d514e3308e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user