From b42f175a85024d59ae8293006e47b35953edca96 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 30 Jun 2025 13:41:04 +0200 Subject: [PATCH] rec meson: check python version to be at least 3.8 Fixes #15732 Signed-off-by: Otto Moerbeek --- pdns/recursordist/meson.build | 3 +++ 1 file changed, 3 insertions(+) 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@'], -- 2.47.2