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

Rivet Mercurial rivet at projects.hepforge.org
Fri Jul 13 17:15:01 BST 2018


details:   https://rivet.hepforge.org/hg/hg-notifications/rivet/rev/dd814dfdb71d
branches:  release-2-6-x
changeset: 6377:dd814dfdb71d
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Jul 13 17:05:10 2018 +0100
description:
Another Python-detection improvement

diffs (15 lines):

--- a/m4/ax_python_devel.m4	Fri Jul 13 09:25:06 2018 +0100
+++ b/m4/ax_python_devel.m4	Fri Jul 13 17:05:10 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 Rivet-svn mailing list