-
Notifications
You must be signed in to change notification settings - Fork 124
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
ament_cmake_python: Update ament_python_install_package() to allow installing more files into an existing package. #514
Comments
This has been an issue since the initial release of Humble and there seems to be little will to fix it despite people putting in proposed MR's. Currently we still maintain a fork of rosidl_generator_py and as such cannot build our packages on the upstream ROS industrial CI. |
I'm replicating the comment from ros2/rosidl_python#141 (comment) here: So we discussed this bug a bit. The most ament_cmake way to do this is to change up the way that ament_python_install_package works. For most things that are part of ament_cmake, the way that they work is that the call (to e.g. ament_export_libraries) doesn't do much work, and instead sets up a bunch of cmake variables, along with a hook. When ament_package is eventually called, it calls all of the hooks, and at that point the hook does the work based on the cmake variables. This is done this way so that ament_package has a full view of the environment, and avoids problems exactly like this. For whatever reason, |
Just to follow up and be clear; the core team will probably not have time to look into this at the moment. So contributions to fix things as stated in #514 (comment) are very much appreciated. |
@clalancette can you tag this with |
@clalancette
I made a hotfix on Our contributor also made a fix, which was again closed. I also think that we can merge the PR and solve perfectly later.
I'm also curious about the discussion. Again, I really thank your work. cc. @rolker |
Tagging along to say this is still preventing us from working effectively with upstream ROS build farm. We maintain a codebase of 100+ packages and splitting them into msgs and srvs is inappropriate for some, and far too much work overall. |
We occured in the same issue. We momentarly solved using another name for the It seems to work (for now), how bad is this approach? |
This sounds like a nice solution. Can you please give me some details about it? Thx! |
Yes, folder name as You can see it here https://github.com/ADVRHumanoids/nicla_vision_ros2/ |
Is there any progress on this topic? We've been maintaining a local fork of ros_idl_python for about 1.5 years now and it doesn't look it's going to be fixed any time soon despite the several solutions already proposed by the community... |
It seems like ros2/rosidl_python#141, errors with generating interfaces and using ament_python_install_package(), is blocking the release of some packages. The one I happen to encounter is audio_common: ros-drivers/audio_common#227
Following the discussions, I found this suggestion as a better alternative to a proposed fix in rosidl_python: ros2/rosidl_python#187 (review)
"I think the best option would be to update ament_python_install_package() to allow installing more files into an existing package.
For example,"
Can someone implement this?
The text was updated successfully, but these errors were encountered: