summaryrefslogtreecommitdiff
path: root/config/python.m4
diff options
context:
space:
mode:
authorPeter Eisentraut2020-01-08 20:48:44 +0000
committerPeter Eisentraut2020-01-08 21:47:22 +0000
commit37f21ed132d1c5aee88e81fee0a0b7e735673d35 (patch)
tree42c54d36c636f68c961783f5a6252ed743b80122 /config/python.m4
parentf5d28710c707ad602cd869602e092cc9d538cbb9 (diff)
Remove support for Python older than 2.6
Supporting very old Python versions is a maintenance burden, especially with the several variant test files to maintain for Python <2.6. Since we have dropped support for older OpenSSL versions in 7b283d0e1d1d79bf1c962d790c94d2a53f3bb38a, RHEL 5 is now effectively desupported, and that was also the only mainstream operating system still using Python versions before 2.6, so it's a good time to drop those as well. Reviewed-by: Tom Lane <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/98b69261-298c-13d2-f34d-836fd9c29b21%402ndquadrant.com
Diffstat (limited to 'config/python.m4')
-rw-r--r--config/python.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/config/python.m4 b/config/python.m4
index c51aa4e332e..d41aeb2876a 100644
--- a/config/python.m4
+++ b/config/python.m4
@@ -37,8 +37,8 @@ python_majorversion=`echo "$python_fullversion" | sed '[s/^\([0-9]*\).*/\1/]'`
python_minorversion=`echo "$python_fullversion" | sed '[s/^[0-9]*\.\([0-9]*\).*/\1/]'`
python_version=`echo "$python_fullversion" | sed '[s/^\([0-9]*\.[0-9]*\).*/\1/]'`
# Reject unsupported Python versions as soon as practical.
-if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
- AC_MSG_ERROR([Python version $python_version is too old (version 2.4 or later is required)])
+if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 6; then
+ AC_MSG_ERROR([Python version $python_version is too old (version 2.6 or later is required)])
fi
AC_MSG_CHECKING([for Python distutils module])