meson: prefer 'python3' to 'python' when finding python3

Although in some cases python 3.x will come without "3" as suffix,
"python3" should still be preferred because sometimes "python" is python
2.x instead.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Eric Engestrom <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33025>
This commit is contained in:
Icenowy Zheng
2025-01-15 11:56:40 +08:00
committed by Marge Bot
parent c3662501a7
commit 1c59793d2d

View File

@@ -917,7 +917,7 @@ if get_option('allow-kcmp') \
endif
# On Windows, a venv has no versioned aliased to 'python'.
prog_python = find_program('python', 'python3', version : '>= 3.8')
prog_python = find_program('python3', 'python', version : '>= 3.8')
has_mako = run_command(
prog_python, '-c',