diff options
author | Reuben Thomas <rrt@sc3d.org> | 2011-12-05 23:40:48 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-12-22 15:21:19 +0100 |
commit | 9999ab731445b4eddbd917e65007731a7e3c4a95 (patch) | |
tree | a04c1180e6b24e06d23771303efe7ce5e18998f8 | |
parent | 0ca3983bfa4c0c1f7e6658a5b7a83ed3d010eb26 (diff) | |
download | automake-9999ab731445b4eddbd917e65007731a7e3c4a95.tar.gz |
python: remove relics for Python 1.5 support
* m4/python.m4: The comments in here claim to support only
Python >= 2.0, yet this file still has specific support for
Python 1.5. Just remove it, python 1.5 is 12 years old now,
and practically defunct.
* NEWS: Update.
See also commit `Release-1-10-205-gd5bec12', "Support for
Python 3.0, drop support for pre-2.0."
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | m4/python.m4 | 16 |
3 files changed, 19 insertions, 11 deletions
@@ -1,3 +1,14 @@ +2011-12-07 Reuben Thomas <rrt@sc3d.org> (tiny change) + + python: remove relics for Python 1.5 support + * m4/python.m4: The comments in here claim to support only + Python >= 2.0, yet this file still has specific support for + Python 1.5. Just remove it, python 1.5 is 12 years old now, + and practically defunct. + * NEWS: Update. + See also commit `Release-1-10-205-gd5bec12', "Support for + Python 3.0, drop support for pre-2.0." + 2011-12-21 Stefano Lattarini <stefano.lattarini@gmail.com> configure: remove extraneous 'eval's from AM_RUN_LOG invocations @@ -24,6 +24,9 @@ New in 1.11.0a: * Miscellaneous changes: + - The last relics of Python 1.5 support have been removed from the + AM_PATH_PYTHON macro. + - The `lzma' compression scheme and associated automake option `dist-lzma' is obsoleted by `xz' and `dist-xz' due to upstream changes. diff --git a/m4/python.m4 b/m4/python.m4 index 89f2dfb48..ee3eb956a 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -10,7 +10,7 @@ # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 +# serial 2 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------- @@ -114,9 +114,7 @@ AC_DEFUN([AM_PATH_PYTHON], dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. - dnl Query distutils for this directory. distutils does not exist in - dnl Python 1.5, so we fall back to the hardcoded directory if it - dnl doesn't work. + dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], [if test "x$prefix" = xNONE @@ -125,8 +123,7 @@ AC_DEFUN([AM_PATH_PYTHON], else am_py_prefix=$prefix fi - am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || - echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` + am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null` case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` @@ -152,9 +149,7 @@ AC_DEFUN([AM_PATH_PYTHON], dnl pyexecdir -- directory for installing python extension modules dnl (shared libraries) - dnl Query distutils for this directory. distutils does not exist in - dnl Python 1.5, so we fall back to the hardcoded directory if it - dnl doesn't work. + dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], [am_cv_python_pyexecdir], [if test "x$exec_prefix" = xNONE @@ -163,8 +158,7 @@ AC_DEFUN([AM_PATH_PYTHON], else am_py_exec_prefix=$exec_prefix fi - am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null || - echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"` + am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null` case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |