diff options
author | ng0 <ng0@n0.is> | 2019-10-18 15:59:12 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-18 15:59:12 +0000 |
commit | 6cb9711744d5bc32c4e8ebe6db53500826891f4c (patch) | |
tree | c9cadbf56743407a6dc0a93e92e07eb775ea4e87 /configure | |
parent | 4272384edde63ba46c5713490f5e92146187fc77 (diff) | |
download | build-common-6cb9711744d5bc32c4e8ebe6db53500826891f4c.tar.gz build-common-6cb9711744d5bc32c4e8ebe6db53500826891f4c.tar.bz2 build-common-6cb9711744d5bc32c4e8ebe6db53500826891f4c.zip |
configure: reduce tests to python3 + python3.7 + python3.8; add check for python3
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -42,19 +42,25 @@ existence() # executable name because there is a PEP which # defines the executable to be like this. if existence python3; then - python="python3" -elif existence python3.1; then - python="python3.1" -elif existence python3.2; then - python="python3.2" -elif existence python3.3; then - python="python3.3" -elif existence python3.4; then - python="python3.4" -elif existence python3.5; then - python="python3.5" -elif existence python3.6; then - python="python3.6" + if test ! -z "`python3 --version | awk '$2 ~ /3.7/ { print }'`"; then + python="python3" + else + echo "*** At least python 3.7 is required for the buildsystem" + exit 1 + fi +fi +# elif existence python3.1; then +# python="python3.1" +# elif existence python3.2; then +# python="python3.2" +# elif existence python3.3; then +# python="python3.3" +# elif existence python3.4; then +# python="python3.4" +# elif existence python3.5; then +# python="python3.5" +# elif existence python3.6; then +# python="python3.6" elif existence python3.7; then python="python3.7" elif existence python3.8; then |