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.
This commit is contained in:
Nicki Křížek 2025-12-30 13:36:41 +01:00
parent ac8e2905b8
commit 144779f3e5

View file

@ -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(