Lines Matching full:python
2 dnl # The majority of the python scripts are written to be compatible
3 dnl # with Python 3.6. This option is intended to
5 dnl # set the PYTHON environment variable accordingly.
8 AC_ARG_WITH([python],
9 AS_HELP_STRING([--with-python[=VERSION]],
10 [default system python version @<:@default=check@:>@]),
15 [check], [AC_CHECK_PROGS([PYTHON], [python3], [:])],
16 [3*], [PYTHON="python${with_python}"],
17 [*python3*], [PYTHON="${with_python}"],
18 [no], [PYTHON=":"],
19 [AC_MSG_ERROR([Unknown --with-python value '$with_python'])]
23 dnl # Minimum supported Python versions for utilities: Python 3.6
27 PYTHON_VERSION=$(echo ${PYTHON##*/} | tr -cd 0-9.)
34 [AC_MSG_ERROR("Python >= 3.6 is required")])
40 AM_CONDITIONAL([USING_PYTHON], [test "$PYTHON" != :])
44 dnl # Request that packages be built for a specific Python version.
49 DEFINE_PYTHON_VERSION='--define "__use_python '${PYTHON}'"'