[yoda-svn] yoda: Fix Python version check

YODA Mercurial yoda at projects.hepforge.org
Wed May 16 17:30:01 BST 2018


details:   https://yoda.hepforge.org/hg/yoda/rev/8835035bd832
branches:  release-1-7
changeset: 1457:8835035bd832
user:      Andy Buckley <andy at insectnation.org>
date:      Wed May 16 15:05:44 2018 +0100
description:
Fix Python version check

diffs (11 lines):

--- a/m4/ax_python_devel.m4	Wed May 02 17:12:32 2018 +0100
+++ b/m4/ax_python_devel.m4	Wed May 16 15:05:44 2018 +0100
@@ -119,7 +119,7 @@
         cat << EOF > ax_python_devel_vpy.py
 class VPy:
     def vtup(self, s):
-        return tuple(map(int, s.strip().split(".")))
+        return tuple(map(int, s.strip().replace("rc", ".").split(".")))
     def __init__(self):
         import platform
         self.vpy = self.vtup(platform.python_version())


More information about the yoda-svn mailing list