python-vars.sh (automake-1.16.2.tar.xz) | : | python-vars.sh (automake-1.16.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
. test-init.sh | . test-init.sh | |||
# In case the user's config.site defines pythondir or pyexecdir. | # In case the user's config.site defines pythondir or pyexecdir. | |||
CONFIG_SITE=/dev/null; export CONFIG_SITE | CONFIG_SITE=/dev/null; export CONFIG_SITE | |||
# Update the definition below if the documentation changes. | # Update the definition below if the documentation changes. | |||
# Note that the value of the 'pythondir' and 'pyexecdir' variables can | # Note that the value of the 'pythondir' and 'pyexecdir' variables can | |||
# vary among different python installations, so we need more relaxed | # vary among different python installations, so we need more relaxed | |||
# and ad-hoc checks for them. Also, more proper "functional" checks | # and ad-hoc checks for them. Also, more proper "functional" checks | |||
# on them should be done in the 'python-virtualenv.sh' test. | # on them should be done in the 'python-virtualenv.sh' test. | |||
PYTHON_VERSION=$($PYTHON -c 'import sys; print(sys.version[:3])') || exit 1 | # | |||
# This version identification is duplicated in python.m4 (and the manual). | ||||
PYTHON_VERSION=$($PYTHON -c 'import sys; print("%u.%u" % sys.version_info[:2])') | ||||
|| exit 1 | ||||
PYTHON_PLATFORM=$($PYTHON -c 'import sys; print(sys.platform)') || exit 1 | PYTHON_PLATFORM=$($PYTHON -c 'import sys; print(sys.platform)') || exit 1 | |||
PYTHON_EXEC_PREFIX='${exec_prefix}' | PYTHON_EXEC_PREFIX='${exec_prefix}' | |||
PYTHON_PREFIX='${prefix}' | PYTHON_PREFIX='${prefix}' | |||
pkgpythondir="\${pythondir}/$me" | pkgpythondir="\${pythondir}/$me" | |||
pkgpyexecdir="\${pyexecdir}/$me" | pkgpyexecdir="\${pyexecdir}/$me" | |||
pyvars='PYTHON_VERSION PYTHON_PLATFORM PYTHON_PREFIX PYTHON_EXEC_PREFIX | pyvars='PYTHON_VERSION PYTHON_PLATFORM PYTHON_PREFIX PYTHON_EXEC_PREFIX | |||
pkgpythondir pkgpyexecdir' | pkgpythondir pkgpyexecdir' | |||
cat >> configure.ac << 'END' | cat >> configure.ac << 'END' | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added |