mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 15:45:22 +00:00
Fixes: #24340 Using find_package(Python3 3.6) will select the highest available python3. This means that in case user has: /usr/bin/python --> python2.7 /usr/bin/python3 --> python3.6 /usr/bin/python3.6 /usr/bin/python3.8 then CMake will choose python 3.8. This commit changes that behavior, so that in the above scenario, then Python 3.6 will be preferred. It also adds the following, python will be preferred over python3, if both meets the minimum requirement. For example: /usr/bin/python --> python3.6 /usr/bin/python3 --> python3.7 then Python 3.6 is prefered. It further introduces PYTHON_PREFER variable, which can be used to further control the behavior. As example -DPYTHON_PREFER=python3.7 will choose Python 3.7 if installed. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no> |
||
---|---|---|
.. | ||
app | ||
bintools | ||
compiler | ||
emu | ||
flash | ||
ide | ||
linker/ld | ||
makefile_exports | ||
reports | ||
toolchain | ||
usage | ||
util | ||
boards.cmake | ||
ccache.cmake | ||
cfb.cmake | ||
dts.cmake | ||
extensions.cmake | ||
extra_flags.cmake | ||
gcc-m-cpu.cmake | ||
generic_toolchain.cmake | ||
git.cmake | ||
hex.cmake | ||
host-tools.cmake | ||
kconfig.cmake | ||
kobj.cmake | ||
pristine.cmake | ||
python.cmake | ||
target_toolchain.cmake | ||
version.cmake | ||
zephyr_module.cmake |