summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-29 19:24:08 +0000
committerng0 <ng0@n0.is>2019-10-29 19:24:08 +0000
commit1a287b755bad92a357531d5bd69f911fc97c29dd (patch)
tree8fadd3d66cc90158a02a7921f083d5604ecf318b
parent5c4681cf16a996a41b4c50445125810dd99635f0 (diff)
downloadtaler-build-scripts-1a287b755bad92a357531d5bd69f911fc97c29dd.tar.gz
taler-build-scripts-1a287b755bad92a357531d5bd69f911fc97c29dd.tar.bz2
taler-build-scripts-1a287b755bad92a357531d5bd69f911fc97c29dd.zip
version check python.
-rw-r--r--talerbuildconfig.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/talerbuildconfig.py b/talerbuildconfig.py
index f0e6d92..27e2056 100644
--- a/talerbuildconfig.py
+++ b/talerbuildconfig.py
@@ -225,10 +225,11 @@ class PythonTool(Tool):
def check(self, buildconfig):
# No suffix. Would probably be cheaper to do this in
- # the dict as well.
+ # the dict as well. We need at least version 3.7.
if existence("python"):
- buildconfig._set_tool("python", "python")
- return True
+ if sys.version_info >= (3, 7):
+ buildconfig._set_tool("python", "python")
+ return True
else:
# Has suffix, try suffix. We know the names in advance,
# so use a dictionary and iterate over it. Use enough names