gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-build-scripts] branch master updated: version check python.


From: gnunet
Subject: [taler-taler-build-scripts] branch master updated: version check python.
Date: Tue, 29 Oct 2019 20:24:23 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository taler-build-scripts.

The following commit(s) were added to refs/heads/master by this push:
     new 1a287b7  version check python.
1a287b7 is described below

commit 1a287b755bad92a357531d5bd69f911fc97c29dd
Author: ng0 <address@hidden>
AuthorDate: Tue Oct 29 19:24:08 2019 +0000

    version check python.
---
 talerbuildconfig.py | 7 ++++---
 1 file 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]