diff options
author | Jerome Benoit <calculus@rezozer.net> | 2022-11-18 10:26:40 +0000 |
---|---|---|
committer | Bastien Roucariès <rouca@debian.org> | 2022-11-18 10:36:06 +0000 |
commit | 30a366c47c31f8be8959014f4ebd7087df1d58da (patch) | |
tree | a92c7f658d00f3191a24e38d3021af9f194b0f72 | |
parent | da89908ef7d82a90fe5dab8904a65869b5a5d996 (diff) | |
download | autoconf-archive-30a366c47c31f8be8959014f4ebd7087df1d58da.tar.gz |
Fix ax_python_devel serial 32 fails with current python3
The faulty code was introduce in commit df89f6cdaade38f3c1c9987be0c5a57c96fc1730
https://github.com/autoconf-archive/autoconf-archive/commit/df89f6cdaade38f3c1c9987be0c5a57c96fc1730
The current code tuple(sys.version_info) gives the 5-tuple (3, 10, 7, 'final', 0) while
the former code sys.version.split()[0] would give the 3-tuple (3, 10, 7).
So, at first glance, the current code tuple(sys.version_info) should be replaced by
tuple(sys.version_info)[:3].
A patch that applied to the current ax_python_devel serial 32 is attached.
-rw-r--r-- | m4/ax_python_devel.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 index 780584e..5f592f1 100644 --- a/m4/ax_python_devel.m4 +++ b/m4/ax_python_devel.m4 @@ -125,7 +125,7 @@ class VPy: return tuple(map(int, s.strip().replace("rc", ".").split("."))) def __init__(self): import sys - self.vpy = tuple(sys.version_info) + self.vpy = tuple(sys.version_info)[[:3]] def __eq__(self, s): return self.vpy == self.vtup(s) def __ne__(self, s): |