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.
Jerome Benoit authored 1 year, 5 months ago
Bastien Roucariès committed 1 year, 5 months ago
66 | 66 | # modified version of the Autoconf Macro, you may extend this special |
67 | 67 | # exception to the GPL to apply to your modified version as well. |
68 | 68 | |
69 | #serial 32 | |
69 | #serial 33 | |
70 | 70 | |
71 | 71 | AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) |
72 | 72 | AC_DEFUN([AX_PYTHON_DEVEL],[ |
124 | 124 | return tuple(map(int, s.strip().replace("rc", ".").split("."))) |
125 | 125 | def __init__(self): |
126 | 126 | import sys |
127 | self.vpy = tuple(sys.version_info) | |
127 | self.vpy = tuple(sys.version_info)[[:3]] | |
128 | 128 | def __eq__(self, s): |
129 | 129 | return self.vpy == self.vtup(s) |
130 | 130 | def __ne__(self, s): |