summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-10 20:39:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-10 20:40:13 +0100
commitd725a0cd1b4aa3ff54452a702b8c19db3f3c3393 (patch)
treed898fffdf4bead3572efb2c00297acbb4cbf0b9d /sh
parent1915a74bbb4cd2ae9bc541a382dfebc37064a2fd (diff)
downloadbuild-common-d725a0cd1b4aa3ff54452a702b8c19db3f3c3393.tar.gz
build-common-d725a0cd1b4aa3ff54452a702b8c19db3f3c3393.tar.bz2
build-common-d725a0cd1b4aa3ff54452a702b8c19db3f3c3393.zip
also detect other Python versions ...
Diffstat (limited to 'sh')
-rw-r--r--sh/lib.sh/existence_python.sh2
1 files changed, 1 insertions, 1 deletions
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"