From: Otto Moerbeek Date: Mon, 30 Jun 2025 11:41:04 +0000 (+0200) Subject: rec meson: check python version to be at least 3.8 X-Git-Tag: rec-5.3.0-alpha2~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15748%2Fhead;p=thirdparty%2Fpdns.git rec meson: check python version to be at least 3.8 Fixes #15732 Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/meson.build b/pdns/recursordist/meson.build index b81584dd61..1b79818b37 100644 --- a/pdns/recursordist/meson.build +++ b/pdns/recursordist/meson.build @@ -286,6 +286,9 @@ metric_sources = [ py = import('python') python = py.find_installation('python3', required: true) +if python.language_version().version_compare('<3.8') + error('Python version is ' + python.language_version() + '; should be at least 3.8 for generate.py script') +endif metricfiles = custom_target( command: [python, '@INPUT0@', '@SOURCE_ROOT@', '@BUILD_ROOT@'],