-
Notifications
You must be signed in to change notification settings - Fork 44
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 modern cmake targets to avoid absolute paths to appear in binary archives #160
Use modern cmake targets to avoid absolute paths to appear in binary archives #160
Conversation
…om there. * Use the new NumpyHeaders::NumpyHeaders and PythonExtra::PythonExtra to avoid absolute paths to appear in windows binary archives. Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…ependencies Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
I downloaded the binary archive, and it works!!! |
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.
Overall, this looks good to me with green CI on all platforms (including RHEL and Windows Debug). I'd like to get a second opinion from @sloretz before we merge, though.
That said, this seems pretty risky to me to put into Humble. This is deep in the heart of the message generation, and we don't know the unintended side effects of this. So my suggestion is that we do indeed put it into Rolling, but we do not backport to Humble. I'd be happy to hear other opinions, though.
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.
In CMake 3.14 and above, Python3::NumPy
can be used, and looking at webos OSE
I think we can use that here ros-infrastructure/rep#351
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Thanks, I'm not sure why I didn't see that before. |
I think it's safe to backport. |
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 for Rolling and Humble backport when CI comes back green.
@Mergifyio backport humble |
…archives (#160) * Use FindPython3 Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * Make link libraries private when possible to avoid having to export dependencies Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * Use Python3::Numpy Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> (cherry picked from commit a608556)
✅ Backports have been created
|
Move logic to find Numpy headers to a module and export a target from there.
Use the new NumpyHeaders::NumpyHeaders and PythonExtra::PythonExtra to avoid absolute paths to appear in windows binary archives.
This partially fixes ros2/rclcpp#1688.
Depends on ros2/python_cmake_module#11.