From 9d5846f780a8b679306ee7accd2580a004c3d981 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Wed, 12 Mar 2025 14:15:57 +0200 Subject: [PATCH] [#3731] Update meson.sh --- meson.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.sh b/meson.sh index 43efbdf69e..0b3521e279 100755 --- a/meson.sh +++ b/meson.sh @@ -28,7 +28,7 @@ if test ! -d venv; then if command -V compgen >/dev/null; then # shellcheck disable=SC3044 # SC3044 (warning): In POSIX sh, 'compgen' is undefined. - newer=$(compgen -c python3 | sort -V | tail -n 1) + newer=$(compgen -c python3 | grep -E '^python3.[0-9]+$' | sort -V | tail -n 1) if test -n "${newer}"; then python3="${newer}" fi