Skip to content

Commit

Permalink
autoconf: support python 3.12
Browse files Browse the repository at this point in the history
problem: flux-core currently can't configure with python3.12 due to
setuptools no longer being part of the default distribution

solution: import setuptools where necessary to keep things working in
the ax_python_devel file
  • Loading branch information
trws authored and grondo committed Sep 25, 2024
1 parent ab4695b commit dcd481d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/ax_python_devel.m4
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ AC_DEFUN([AX_PYTHON_DEVEL],[
# Check for a version of Python >= 2.1.0
#
AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
ac_supports_python_ver=`$PYTHON -c "import sys; \
ac_supports_python_ver=`$PYTHON -c "import sys;import setuptools; \
ver = sys.version.split ()[[0]]; \
print (ver >= '2.1.0')"`
if test "$ac_supports_python_ver" != "True"; then
Expand Down Expand Up @@ -150,6 +150,7 @@ class VPy:
return tuple(map(int, s.strip().replace("rc", ".").split(".")))
def __init__(self):
import sys
import setuptools
self.vpy = tuple(sys.version_info)[[:3]]
def __eq__(self, s):
return self.vpy == self.vtup(s)
Expand Down

0 comments on commit dcd481d

Please sign in to comment.