Lines Matching full:python
255 python=
553 # We require python >= 3.9.
554 # NB: a True python conditional creates a non-zero return code (Failure)
559 if test -z "${PYTHON}"; then
560 # A bare 'python' is traditionally python 2.x, but some distros
561 # have it as python 3.x, so check in both places.
562 for binary in python3 python python3.13 python3.12 python3.11 \
565 python=$(command -v "$binary")
566 if check_py_version "$python"; then
571 first_python=$python
577 has "${PYTHON}" || error_exit "The PYTHON environment variable does not point to an executable"
578 python=$(command -v "$PYTHON")
579 if check_py_version "$python"; then
672 --python=*) python="$optarg"
906 --python=PYTHON use specified python [$python]
944 if test -z "$python"
949 error_exit "Cannot use '$first_python', Python >= 3.9 is required." \
950 "Use --python=/path/to/python to specify a supported Python."
952 error_exit "Python not found. Use --python=/path/to/python"
956 if ! check_py_version "$python"; then
957 error_exit "Cannot use '$python', Python >= 3.9 is required." \
958 "Use --python=/path/to/python to specify a supported Python." \
965 python="$(command -v "$python")"
967 # Create a Python virtual environment using our configured python.
969 # points to the configured Python.
982 echo "python determined to be '$python'"
983 echo "python version: $($python --version)"
985 python="$($python -B "${source_path}/python/scripts/mkvenv.py" create pyvenv)"
987 error_exit "python venv creation failed"
991 python="$python -B"
992 mkvenv="$python ${source_path}/python/scripts/mkvenv.py"
996 $mkvenv ensuregroup --dir "${source_path}/python/wheels" \
1151 gdb_arches=$($python "$source_path/scripts/probe-gdb-support.py" $gdb_bin)
1324 case $($python "$source_path"/tests/docker/docker.py --engine "$container_engine" probe) in
1330 docker_py="$python $source_path/tests/docker/docker.py --engine $container"
1711 LINKS="$LINKS python"
1787 echo "PYTHON=$python" >> $config_host_mak
2039 preserve_env PYTHON