summaryrefslogtreecommitdiff
path: root/config/python.m4
diff options
context:
space:
mode:
authorPeter Eisentraut2017-02-21 14:27:02 +0000
committerPeter Eisentraut2017-02-21 14:49:22 +0000
commit04aad401867ad3e1519615d8486e32b50dbcb5f5 (patch)
treea9126115b80ba8a03b84f0e9b16864c307eae911 /config/python.m4
parent0bf41dd1908a0c05833168b9972e1c52cb7547b7 (diff)
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.
Diffstat (limited to 'config/python.m4')
-rw-r--r--config/python.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/config/python.m4 b/config/python.m4
index b605212bea1..7f775e77d23 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])