From 7a928ee3ed4a55bb9846bed9f7bfe9f3d3b75b04 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Sat, 21 Mar 2026 07:24:48 -0300 Subject: [PATCH] meson: Ensure unversioned python is properly found on Windows --- meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index d3ccd57082..7cbd230bf5 100644 --- a/meson.build +++ b/meson.build @@ -1194,9 +1194,11 @@ python3_minver = '>=3.6' pygobject_minver = '>=3.0' -#Non-versioned python -py_candidates = ['python3'] -#Versioned python (e.g. on MacPorts) +#Non-versioned python (e.g. on Windows) +py_candidates = ['python'] +#Major versioned python (e.g. on Linux) +py_candidates += ['python3'] +#Minor versioned python (e.g. on MacPorts) foreach i : range(python3_minver.substring(2).split('.')[-1].to_int(), 40) py_candidates += ['python3.' + i.to_string()] endforeach