aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-07 12:07:13 -0400
committerDavid Robillard <d@drobilla.net>2022-08-07 12:07:13 -0400
commitdf88fe0d9d954a7f4076a680fccb04c78ac80f11 (patch)
treeadd217c380cadc9144d44d4ced01ac541dab9392
parent60b153b94107c7064420d13a5c38b32a155870b1 (diff)
downloadlv2-df88fe0d9d954a7f4076a680fccb04c78ac80f11.tar.xz
Avoid running checks or building documentation if Python is too old
-rw-r--r--meson.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a6ae1b4..4f4fcf1 100644
--- a/meson.build
+++ b/meson.build
@@ -186,6 +186,12 @@ check_python = pymod.find_installation(
required: get_option('tests'),
)
+if (check_python.found() and
+ check_python.language_version().version_compare('<3.7'))
+ warning('Python 3.7 is required for tests')
+ check_python = disabler()
+endif
+
foreach bundle_name : all_spec_names
bundle = 'lv2' / bundle_name + '.lv2'
@@ -297,7 +303,10 @@ if not get_option('docs').disabled()
required: get_option('docs'),
)
- build_docs = doxygen.found() and python.found()
+ if python.found() and python.language_version().version_compare('<3.7')
+ warning('Python 3.7 is required for documentation')
+ build_docs = false
+ endif
endif
# Run Doxygen first to generate tags