From 04aad401867ad3e1519615d8486e32b50dbcb5f5 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 21 Feb 2017 09:27:02 -0500 Subject: Drop support for Python 2.3 There is no specific reason for this right now, but keeping support for old Python versions around indefinitely increases the maintenance burden. The oldest supported Python version is now Python 2.4, which is still shipped in RHEL/CentOS 5 by default. In configure, add a check for the required Python version and give a friendly error message for an old version, instead of relying on an obscure build error later on. --- config/python.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'config/python.m4') diff --git a/config/python.m4 b/config/python.m4 index b605212bea..7f775e77d2 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -31,6 +31,7 @@ else fi AC_MSG_CHECKING([Python configuration directory]) python_majorversion=`${PYTHON} -c "import sys; print(sys.version[[0]])"` +python_minorversion=`${PYTHON} -c "import sys; print(sys.version[[2]])"` python_version=`${PYTHON} -c "import sys; print(sys.version[[:3]])"` python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"` AC_MSG_RESULT([$python_configdir]) -- cgit v1.2.3