Skip to content
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: use python 3 as default #368

Closed
wants to merge 1 commit into from
Closed

cmake: use python 3 as default #368

wants to merge 1 commit into from

Conversation

jbeyerstedt
Copy link
Contributor

@jbeyerstedt jbeyerstedt commented Nov 13, 2019

As you all know, the end of python 2 comes closer and closer. Even if the python3 support for PX4 is still under construction (see PX4/PX4-Autopilot#12809 and PX4/PX4-Autopilot#13008), using python3 here might be easier to achieve?

Another solution would be to replace find_package(PythonInterp REQUIRED) with find_package(Python REQUIRED) in the CMakeLists.txt, because FindPythonInterp got deprecated and replaced by FindPython with cmake 3.12. (This change also renamed PYTHON_EXECUTABLE to Python_EXECUTABLE.)
But only Ubuntu 18.10 „Cosmic Cuttlefish“ or Debian Buster come with the needed cmake version and the PX4 docs still support and even recommend ubuntu 16.04. So this change might be a bit early.

@jbeyerstedt
Copy link
Contributor Author

I see, that all docker build environment images must also be changed to have the python packages like jinja2 installed with pip3. Same issue with macOS, that is handled in the travis configuration directly.
So this has to wait for PX4/PX4-containers#199.

@TSC21
Copy link
Member

TSC21 commented Nov 18, 2019

@jbeyerstedt I superseded this PR in #373. Is it fine with you I close this and we bring the change in the other PR?

@jbeyerstedt
Copy link
Contributor Author

Your PR looks way better than mine, so I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants