-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
cmake does not detect most recent python, it is fixed somehow to 3.4.x #11857
Comments
I'm seeing this too, though it's kinda nice in that I get compatibility testing for free. ;) |
To save time, I'd prefer to await the CMake version bump. And then see if the problem persists ... |
whose time? :-) |
Was able to reproduce, it seems that when python3.4 is on path it takes priority over any 'python' executable on path. Will look into a fix. |
Users expect that not just "some" compatible python is detected, but also that it will be the 'python' executable from PATH, at least when this executable is valid. To this end rewrite FindPythonInterp to give this executable the highest priority. This fixes zephyrproject-rtos#11857 Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
Users expect that not just "some" compatible python is detected, but also that it will be the 'python' executable from PATH, at least when this executable is valid. To this end rewrite FindPythonInterp to give this executable the highest priority. This fixes #11857 Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
Describe the bug
On a system with multiple versions of python where the binary python actually points to python 3.7, cmake still thinks I want 3.4.x.
This is hardcoded in the boilerplate, when I change:
it detect the version I want.
To Reproduce
Install a new version of python, for example in a virtualenv and make it default
Expected behavior
cmake should detect the enabled python configured, not a specific fixed version.
Impact
You might have installed all requirements using one version that cmake will not detect and build will fail.
Additional context
Some CI systems come with lots of python versions installed, this is confusing and doomed to fail if we pick a specific version.
The text was updated successfully, but these errors were encountered: