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
Make ament_python_install_package() install console_scripts #328
Conversation
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
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.
what is the result of this if there is no script to install?
do you get an empty <build_dir>/scripts
and nothing happens in the install folder?
If that's the case (which seems like it), lgtm!
if something get's installed in the install folder even if no script exist, doesn't lgtm 😂
Nice! |
Good point. Yeah, empty directory. Ugh. Will fix. |
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
b6cb63b does the trick, but it requires explicit request. I had to add |
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!
It would be great if this would be used somewhere so we can check it actually works, but that's something that it can be done later.
ros-simulation/gazebo_ros_pkgs#1252 does, but I don't think we can run a joint CI. After a Rolling release, perhaps. |
I'll get this one merged after the freeze. It's a nice to have and I don't want to break anything 😅 |
Alright, this is ready to go in. I do not expect any fallout, but I will keep an eye on it for the next few days. If it gives us trouble, I'll revert it right away. |
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
It feels somewhat awkward that one needs to specify
IMHO, only the first point is justified. The generation should be triggered in any case. To ensure that script files are only installed if really needed, one could easily use cmake's @hidmic, would you accept a PR to make |
@rhaschke IIRC we force explicit request so as to not populate the install space with empty directories (in case no scripts are declared in the
@rhaschke as a general rule of thumb, we don't backport features. Having said that, it should be a fairly innocuous backport. I'm onboard if @jacobperron is. |
I have no objection is folks want to backport this to Foxy. |
hi. trying to compile foxy on raspberry pi zero. but sadly my project needs xacro which only has one ros2 branch which uses the new "ament_python_install_package" syntax, but because this is not backported to foxy, i get
fatal error and it stops to compile. |
Foxy is now End-of-Life, so we don't have a way to do backports there. I encourage you to try out Humble, where this bug should already be fixed. |
But would this run on raspberry pi zero 1? Because compiling on it takes days, and after days compiling to find out, it don't work, wouldn't be great... |
@LaneaLucy, you could simply revert the corresponding xacro commit. No need to rebuilt in this case ;-) |
@rhaschke I'm now using the last tag of xacro that don't use the new format. It's compiling now, but this will take at least some hours before it gets to the xacro part |
You don't need to rebuilt packages if you just changed xacro. |
@rhaschke I'm compiling ROS2 from source and it don't re compile packages without change, but on a raspi zero it still takes some time (15s-2min) for colcon to figure out if it needs to compile. And I'm still very new to ros and that's my first ros2 build from source |
Precisely what the title says. A nice to have, addressing #213.
Preliminary CI up to
ament_cmake_python
(no core packages exercises the feature):