Lines Matching full:python
183 # Adds support for distributing Python modules and packages. To
190 # locations to install python extension modules (shared libraries).
194 # If your package is configured with a different prefix to python,
196 # environment variable, or create a .pth file (see the python
200 # cause an error if the version of python installed on the system
205 dnl Find a Python interpreter. Python versions prior to 2.0 are not
208 [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
213 # Find any Python interpreter.
214 if test -z "$PYTHON"; then
215 AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
217 am_display_PYTHON=python
220 if test -n "$PYTHON"; then
221 # If the user set $PYTHON, use it and don't search something else.
222 AC_MSG_CHECKING([whether $PYTHON version >= $1])
223 AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
226 am_display_PYTHON=$PYTHON
230 AC_CACHE_CHECK([for a Python interpreter with version >= $1],
236 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
238 PYTHON=:
240 AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
246 if test "$PYTHON" = :; then
248 m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
251 dnl Query Python for its version number. Getting [:3] seems to be
256 [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
268 dnl to know which OS platform Python thinks this is.
271 [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
277 dnl pythondir -- where to install python scripts. This is the
278 dnl site-packages directory, not the python standard library
282 dnl Python 1.5, so we fall back to the hardcoded directory if it
292 …am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(…
293 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
303 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
317 dnl pyexecdir -- directory for installing python extension modules
320 dnl Python 1.5, so we fall back to the hardcoded directory if it
330 …am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(…
331 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
341 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
362 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
366 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
371 # map returns an iterator in Python 3.0 and a list in 2.x
374 # xrange is not present in Python 3.0 and range returns an iterator