-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use FindPython3 instead of FindPythonInterp #7
Conversation
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
e4607ca
to
e29e74f
Compare
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
All right, I've rebased this onto the latest, and also updated it to export the PYTHON_EXECUTABLE and PYTHON_EXECUTABLE_DEBUG variables. That seems to keep most downstream things working, and succeeds in all my local tests. I'm going to run a full-up CI on this along with ros2/rosidl_python#140 to see what happens: |
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
OK, I think I've now finally licked this on all platforms. This should get rid of our warnings. @sloretz if you get a chance, I'd appreciate a review from you on this and ros2/rosidl_python#140 , since I have made some substantial changes since you last opened it. |
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
This simplifies things so we no longer need a PythonExtra::Interpreter. Signed-off-by: Chris Lalancette <[email protected]>
eb5e38e
to
72a7ec2
Compare
Linux AMD job needs a retrigger. |
Signed-off-by: Chris Lalancette <[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.
LGTM
Here's another try that includes ros-visualization/rqt_plot#93 and ros-visualization/rqt_bag#151: |
First pass at #6 - marking as draft because I've learned a few prerequisites
Python3::Interpreter
is blocked byament_cmake_pytest
and/orament_cmake_test
lack of support for imported executable targetsPython3_add_library
use by rosidl generators is blocked by using non-keyword versions oftarget_link_libraries()
Also:
I haven't tested ifI've tested it now, andfind_package(Python3 REQUIRED COMPONENTS ...)
can be found multiple times with additional comments - if so then the documentation in this PR is incorrect.FindPython3
can be found multiple times to get more components, so this PR can be a little bit simpler :)