meson: Fix build break on f43, gentoo, etc

Suggested-by: Marek Olšák <maraeo@gmail.com>
Fixes: e1b20bb883 ("meson.build: require python 3.10, try python3.12")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/15079
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40463>
This commit is contained in:
Rob Clark 2026-03-17 08:11:09 -07:00 committed by Marge Bot
parent addadd20df
commit 4fc7a26aed

View file

@ -1036,8 +1036,8 @@ endif
# - On Windows, a venv has no versioned aliased to 'python'.
# - On RHEL 9, python3 is 3.9, so we must use python3.12.
python_version_req = '>= 3.10'
python_exec_list = ['python3.16', 'python3.15', 'python3.14', 'python3.13',
'python3.12', 'python3.11', 'python3.10', 'python3', 'python']
python_exec_list = ['python3', 'python3.16', 'python3.15', 'python3.14', 'python3.13',
'python3.12', 'python3.11', 'python3.10', 'python']
foreach p : python_exec_list
prog_python = find_program(p, required : false, version : python_version_req)