From d725a0cd1b4aa3ff54452a702b8c19db3f3c3393 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 10 Dec 2019 20:39:47 +0100 Subject: also detect other Python versions ... --- sh/lib.sh/existence_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/lib.sh/existence_python.sh b/sh/lib.sh/existence_python.sh index f32975a..5fd9b03 100644 --- a/sh/lib.sh/existence_python.sh +++ b/sh/lib.sh/existence_python.sh @@ -36,7 +36,7 @@ existence_python() # executable name because there is a PEP which # defines the executable to be like this. if existence python3; then - if test ! -z "`python3 --version | awk '$2 ~ /3.7/ { print }'`"; then + if test ! -z "`python3 --version | awk '$2 ~ /^3\./ { print }'`"; then python="python3" else echo "*** At least python 3.7 is required for the buildsystem" -- cgit v1.2.3