"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "m4/python.m4" between
automake-1.16.2.tar.xz and automake-1.16.3.tar.xz

About: GNU Automake is a Makefile generator (input Makefile.am, output Makefile.in; intended for use with autoconf).

python.m4  (automake-1.16.2.tar.xz):python.m4  (automake-1.16.3.tar.xz)
## ------------------------ -*- Autoconf -*- ## ------------------------ -*- Autoconf -*-
## Python file handling ## Python file handling
## From Andrew Dalke ## From Andrew Dalke
## Updated by James Henstridge ## Updated by James Henstridge and other contributors.
## ------------------------ ## ------------------------
# Copyright (C) 1999-2020 Free Software Foundation, Inc. # Copyright (C) 1999-2020 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Adds support for distributing Python modules and packages. To # Adds support for distributing Python modules and packages. To
skipping to change at line 88 skipping to change at line 88
fi fi
am_display_PYTHON=$am_cv_pathless_PYTHON am_display_PYTHON=$am_cv_pathless_PYTHON
fi fi
]) ])
if test "$PYTHON" = :; then if test "$PYTHON" = :; then
dnl Run any user-specified action, or abort. dnl Run any user-specified action, or abort.
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
else else
dnl Query Python for its version number. Getting [:3] seems to be dnl Query Python for its version number. Although site.py simply uses
dnl the best way to do this; it's what "site.py" does in the standard dnl sys.version[:3], printing that failed with Python 3.10, since the
dnl library. dnl trailing zero was eliminated. So now we output just the major
dnl and minor version numbers, as numbers. Apparently the tertiary
dnl version is not of interest.
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
[am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[ [:3]])"`]) [am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_i nfo[[:2]])"`])
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
dnl Use the values of $prefix and $exec_prefix for the corresponding dnl Use the values of $prefix and $exec_prefix for the corresponding
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
dnl distinct variables so they can be overridden if need be. However, dnl distinct variables so they can be overridden if need be. However,
dnl general consensus is that you shouldn't need this ability. dnl general consensus is that you shouldn't need this ability.
AC_SUBST([PYTHON_PREFIX], ['${prefix}']) AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 End of changes. 3 change blocks. 
5 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)