summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-18 16:04:15 +0000
committerng0 <ng0@n0.is>2019-10-18 16:04:15 +0000
commit762cd9090f6e4176bf31c9739579209460b40464 (patch)
treecf2295707e8d0fd0e951fbf5b6e769eb4caf14ec
parent7a088ba0ca7a5644c30d56085cbd93d0b14fa704 (diff)
downloadwallet-core-762cd9090f6e4176bf31c9739579209460b40464.tar.gz
wallet-core-762cd9090f6e4176bf31c9739579209460b40464.tar.bz2
wallet-core-762cd9090f6e4176bf31c9739579209460b40464.zip
sync python test from build-scripts
-rwxr-xr-xconfigure19
1 files changed, 18 insertions, 1 deletions
diff --git a/configure b/configure
index 7ad5a9139..45837b56b 100755
--- a/configure
+++ b/configure
@@ -42,7 +42,24 @@ existence()
# executable name because there is a PEP which
# defines the executable to be like this.
if existence python3; then
- python="python3"
+ 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
+# 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