-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The wrong Python version can be detected on Windows #11103
Labels
area: Build System
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Comments
SebastianBoe
added
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
area: Build System
labels
Nov 5, 2018
SebastianBoe
added a commit
to SebastianBoe/zephyr
that referenced
this issue
Nov 12, 2018
Copy the 3.8.2 version of FindPythonInterp.cmake into the repo so that we can patch it and fix zephyrproject-rtos#11103. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
SebastianBoe
added a commit
to SebastianBoe/zephyr
that referenced
this issue
Nov 12, 2018
The 'FindPythonInterp' that is distributed with CMake 3.8 is affected by bug: zephyrproject-rtos#11103 To work around this, until we upgrade to 3.13, we copy and patch the 3.8 version of 'FindPythonInterp' into the Zephyr repository. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
carlescufi
pushed a commit
that referenced
this issue
Nov 20, 2018
Copy the 3.8.2 version of FindPythonInterp.cmake into the repo so that we can patch it and fix #11103. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
carlescufi
pushed a commit
that referenced
this issue
Nov 20, 2018
The 'FindPythonInterp' that is distributed with CMake 3.8 is affected by bug: #11103 To work around this, until we upgrade to 3.13, we copy and patch the 3.8 version of 'FindPythonInterp' into the Zephyr repository. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This was referenced Apr 9, 2020
tejlmand
added a commit
to tejlmand/zephyr
that referenced
this issue
Apr 13, 2020
Fixes: zephyrproject-rtos#23922, zephyrproject-rtos#24252, zephyrproject-rtos#11103 This commit switches to use the find_package(Python3) introduced with CMake 3.12. This removes the need for a Zephyr backport of Python detection module. The search order for Python3 is following CMake search order and can be controlled through CMake flags (See CMake documentation). Default it will use the Python version found in PATH. If multiple Python3 versions are found in PATH, the newest version will be selected (Can be controlled using `Python3_FIND_STRATEGY`) Using find_package(Python3) also ensures Python2.7 will never be selected, issue zephyrproject-rtos#11103, which was re-introduced in Zephyr. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
nashif
pushed a commit
that referenced
this issue
Apr 13, 2020
Fixes: #23922, #24252, #11103 This commit switches to use the find_package(Python3) introduced with CMake 3.12. This removes the need for a Zephyr backport of Python detection module. The search order for Python3 is following CMake search order and can be controlled through CMake flags (See CMake documentation). Default it will use the Python version found in PATH. If multiple Python3 versions are found in PATH, the newest version will be selected (Can be controlled using `Python3_FIND_STRATEGY`) Using find_package(Python3) also ensures Python2.7 will never be selected, issue #11103, which was re-introduced in Zephyr. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
avisconti
pushed a commit
to avisconti/zephyr
that referenced
this issue
Apr 15, 2020
Fixes: zephyrproject-rtos#23922, zephyrproject-rtos#24252, zephyrproject-rtos#11103 This commit switches to use the find_package(Python3) introduced with CMake 3.12. This removes the need for a Zephyr backport of Python detection module. The search order for Python3 is following CMake search order and can be controlled through CMake flags (See CMake documentation). Default it will use the Python version found in PATH. If multiple Python3 versions are found in PATH, the newest version will be selected (Can be controlled using `Python3_FIND_STRATEGY`) Using find_package(Python3) also ensures Python2.7 will never be selected, issue zephyrproject-rtos#11103, which was re-introduced in Zephyr. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
hakehuang
pushed a commit
to hakehuang/zephyr
that referenced
this issue
Jun 20, 2020
Fixes: zephyrproject-rtos#23922, zephyrproject-rtos#24252, zephyrproject-rtos#11103 This commit switches to use the find_package(Python3) introduced with CMake 3.12. This removes the need for a Zephyr backport of Python detection module. The search order for Python3 is following CMake search order and can be controlled through CMake flags (See CMake documentation). Default it will use the Python version found in PATH. If multiple Python3 versions are found in PATH, the newest version will be selected (Can be controlled using `Python3_FIND_STRATEGY`) Using find_package(Python3) also ensures Python2.7 will never be selected, issue zephyrproject-rtos#11103, which was re-introduced in Zephyr. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Build System
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
When a Windows-user (this does not affect Linux) has both Python2 and Python3 on path, and Python2 is earlier on path, the wrong python will be detected.
NB: Zephyr only supports Python 3.
Until this is resolved users should either re-order Python2's location on path, or invoke CMake while setting the CMake variable PYTHON_EXECUTABLE.
The text was updated successfully, but these errors were encountered: