From df88fe0d9d954a7f4076a680fccb04c78ac80f11 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Aug 2022 12:07:13 -0400 Subject: Avoid running checks or building documentation if Python is too old --- meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1