Commit a0ef2fd1 authored by Moritz Lipp's avatar Moritz Lipp

Check python dependencies for doc

parent 69efc7d7
Pipeline #207 failed with stages
in 43 seconds
sphinx = find_program('sphinx-build')
pymod = import('python')
python = pymod.find_installation()
python = pymod.find_installation('python')
python_required_modules = ['sphinx_rtd_theme', 'hawkmoth']
hawkmoth = python.dependency('hawkmoth')
if sphinx.found()
# Check required modules
foreach p : python_required_modules
script = 'import importlib.util; import sys; exit(1) if importlib.util.find_spec(\''+ p +'\') is None else exit(0)'
if run_command(python, '-c', script).returncode() != 0
error('Required Python module \'' + p + '\' not found')
if sphinx.found() and hawkmoth.found()
doc_sources = [
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment