From 144779f3e5769394133cea3e2f0b87df30e9ef97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Tue, 30 Dec 2025 13:36:41 +0100 Subject: [PATCH] Prefer Python 3.12 if available This ensures that python3.12 is used testing on older distributions like EL8 and EL9, where the platform default python3 is older. python3.11 was explicitly added due to FreeBSD, which doesn't have that binary symlinked to any other name (like python3). Previously, it worked only incidentally - when python3 was listed first, it triggered special meson code for python detection, which is no longer the case when python3.12 is listed first. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 84b8d93a1d..4ffc0c5e4c 100644 --- a/meson.build +++ b/meson.build @@ -99,7 +99,7 @@ fstrm_capture = find_program('fstrm_capture', required: false) git = find_program('git', required: false) jq = find_program('jq', required: false) nc = find_program('nc', required: false) -python = find_program(['python3', 'python'], required: false) +python = find_program(['python3.12', 'python3.11', 'python3', 'python'], required: false) xmllint = find_program('xmllint', required: false) xsltproc = find_program('xsltproc', required: false) pytest = find_program(