]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec meson: check python version to be at least 3.8 15748/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Jun 2025 11:41:04 +0000 (13:41 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Jun 2025 11:42:57 +0000 (13:42 +0200)
Fixes #15732

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/meson.build

index b81584dd6182bb8500fcfd0138186c86db59b05b..1b79818b3722f17bbe0fc2cec8238fa73fb066bd 100644 (file)
@@ -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@'],