[yoda-svn] hg-notifications/yoda: Another Python-detection improvement

YODA Mercurial yoda at projects.hepforge.org
Fri Jul 13 17:15:01 BST 2018


details:   https://yoda.hepforge.org/hg/hg-notifications/yoda/rev/e913c944bd94
branches:  release-1-7
changeset: 1471:e913c944bd94
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Jul 13 17:05:17 2018 +0100
description:
Another Python-detection improvement

diffs (15 lines):

--- a/m4/ax_python_devel.m4	Fri Jun 29 22:20:04 2018 +0100
+++ b/m4/ax_python_devel.m4	Fri Jul 13 17:05:17 2018 +0100
@@ -121,8 +121,10 @@
     def vtup(self, s):
         return tuple(map(int, s.strip().replace("rc", ".").split(".")))
     def __init__(self):
-        import platform
-        self.vpy = self.vtup(platform.python_version())
+        #import platform
+        #self.vpy = self.vtup(platform.python_version())
+        import sys
+        self.vpy = sys.version_info
     def __eq__(self, s):
         return self.vpy == self.vtup(s)
     def __ne__(self, s):


More information about the yoda-svn mailing list