Lines Matching +full:python +full:- +full:version
1 ## ------------------------
2 ## Python file handling
6 ## ------------------------
8 # AS_PATH_PYTHON([MINIMUM-VERSION])
10 # Adds support for distributing Python modules and packages. To
17 # locations to install python extension modules (shared libraries).
21 # If your package is configured with a different prefix to python,
23 # environment variable, or create a .pth file (see the python
26 # If the MINIMUM-VERSION argument is passed, AS_PATH_PYTHON will
27 # cause an error if the version of python installed on the system
28 # doesn't meet the requirement. MINIMUM-VERSION should consist of
31 # Updated to loop over all possible python binaries by Andy Wingo
33 # Updated to only warn and unset PYTHON if no good one is found
37 dnl Find a version of Python. I could check for python versions 1.4
39 dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
42 dnl should we do the version check?
43 PYTHON_CANDIDATES="python python2.2 python2.1 python2.0 python2 \
46 [AC_PATH_PROG(PYTHON, $PYTHON_CANDIDATES)],
48 AC_MSG_NOTICE(Looking for Python version >= $1)
64 unset PYTHON
65 AC_PATH_PROG(PYTHON, $python_candidate) 1> /dev/null 2> /dev/null
67 if test "x$PYTHON" = "x"; then continue; fi
69 if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
70 AC_MSG_CHECKING(["$PYTHON":])
82 AC_MSG_WARN([No suitable version of python found])
83 PYTHON=
86 AC_MSG_CHECKING([local Python configuration])
88 dnl Query Python for its version number. Getting [:3] seems to be
94 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
110 dnl to know which OS platform Python thinks this is.
113 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
118 dnl pythondir -- where to install python scripts. This is the
119 dnl site-packages directory, not the python standard library
123 dnl Also, if the package prefix isn't the same as python's prefix,
127 pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
129 dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
132 dnl Maybe this should be put in python.am?
137 dnl pyexecdir -- directory for installing python extension modules
141 pyexecdir=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
143 dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
144 dnl Maybe this should be put in python.am?