Codebase list autoconf-archive / 8ae73c1
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
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6666 # modified version of the Autoconf Macro, you may extend this special
6767 # exception to the GPL to apply to your modified version as well.
6868
69 #serial 32
69 #serial 33
7070
7171 AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL])
7272 AC_DEFUN([AX_PYTHON_DEVEL],[
124124 return tuple(map(int, s.strip().replace("rc", ".").split(".")))
125125 def __init__(self):
126126 import sys
127 self.vpy = tuple(sys.version_info)
127 self.vpy = tuple(sys.version_info)[[:3]]
128128 def __eq__(self, s):
129129 return self.vpy == self.vtup(s)
130130 def __ne__(self, s):