Lines Matching +full:python +full:- +full:version
1 # SPDX-License-Identifier: Apache-2.0
5 # On Windows, instruct Python to output UTF-8 even when not
6 # interacting with a terminal. This is required since Python scripts
11 set(ENV{PYTHONIOENCODING} "utf-8")
24 # find_program(PYTHON_EXECUTABLE_SYSTEM_DEFAULT "python" "python3")
25 # cause just using find_program directly could result in a python2.7 as python,
27 foreach(candidate "python" "python3")
30 execute_process (COMMAND "${Python3_EXECUTABLE}" -c
33 OUTPUT_VARIABLE version
36 if(version VERSION_LESS PYTHON_MINIMUM_REQUIRED)
37 set(Python3_EXECUTABLE "Python3_EXECUTABLE-NOTFOUND" CACHE INTERNAL "Path to a program")
45 # Zephyr internally used Python variable.