-
Notifications
You must be signed in to change notification settings - Fork 30
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
Replace deprecated PythonInterp with Python3 #213
Conversation
Signed-off-by: Bi0T1N <[email protected]>
Thanks for the PR @Bi0T1N! Since the changes are carefully maintaining current behavior I'm going to target the PR against the ign-cmake2 branch so we get the changes ready in a released branch, ready to be shipped in the next release. |
Changing PR base in the PR did not work well, keeping it against main. We'll do the other way around, We can backport it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been testing Ignition Fortress and Ignition Garden packages with this and seems to work nicely in both Ubuntu Focal (version 3.16) and Debian Sid (version 3.22).
I left one suggestion to change the input name of the variable, otherwise we are good to go.
Signed-off-by: Bi0T1N <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @Bi0T1N . Good to go.
* Replace deprecated PythonInterp with Python3 Signed-off-by: Bi0T1N <[email protected]>
* Replace deprecated PythonInterp with Python3 Signed-off-by: Bi0T1N <[email protected]>
…im#218) * Replace deprecated PythonInterp with Python3 Signed-off-by: Bi0T1N <[email protected]> Signed-off-by: Harsh Mahesheka <[email protected]>
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-releases-2022-04-27-fortress-citadel/1389/1 |
🦟 Bug fix
Fixes #212
Summary
PythonInterp
is deprecated for CMake versions > 3.11 and all scripts use Python3 features anyway, so replace it with the recommendedfind_package(Python3)
but also provide fallback solutions until the required CMake version can be bumped.Note: Some small adjustments may be required in other packages to use the new variables. If the changes here are fine I will create the other PR's.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.