Ask Your Question
0

How to install only execution dependencies?

asked 2019-10-25 11:39:46 -0600

Nicolas gravatar image

Hello, in package.xml, it is possible to define execution dependencies. These are the dependencies I would want to install, if I deploy an install space. How do I install only execution (or build/test/documentation) dependencies? Both rosdep and rospack do not seem to support this, see https://github.com/ros-infrastructure... . Best Regards!

edit retag flag offensive close merge delete

Comments

Nicolas gravatar imageNicolas ( 2019-10-28 08:20:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-26 04:25:15 -0600

gvdhoorn gravatar image

updated 2019-10-26 04:30:07 -0600

I don't believe this is currently supported. As you already found, get_rosdeps(..) combines all dependencies into a single set (here):

deps = pkg.build_depends + pkg.buildtool_depends + pkg.run_depends + pkg.test_depends

There is already an open issue about this: ros-infrastructure/rosdep#587.

Getting this supported does not seem like it would be too difficult. It would make a great (first) pull request to ros-infrastructure/rosdep.


A workaround used by the author of that issue:

Currently, I've made a workaround solution which temporarily removes the irrelevant lines from the package.xml with a sed command and then runs the rosdep command.

This is really only just a workaround. Adding proper support to rosdep for this would be very much preferred.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-10-25 11:39:46 -0600

Seen: 82 times

Last updated: Oct 26