]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Prefer Python 3.12 if available
authorNicki Křížek <nicki@isc.org>
Tue, 30 Dec 2025 12:36:41 +0000 (13:36 +0100)
committerNicki Křížek <nicki@isc.org>
Wed, 21 Jan 2026 15:07:31 +0000 (16:07 +0100)
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

index 84b8d93a1dc24895488b229255c212707f41bd51..4ffc0c5e4c2d1290600498dae64d3c898852f365 100644 (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(