ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

build_depend vs build_export_depend vs exec_depend in ROS with Python?

asked 2019-05-27 15:39:11 -0600

Sparkle Eyes gravatar image

In the context of using ROS with Python, how would the build_depend, build_export_depend and exec_depend differ?

Since Python is an interpreted language, can I understand it as they should all be the same? How would there be a build process (perhaps excluding the case when we use Cython or other C++ based Python extensions).

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2019-05-28 01:14:45 -0600

mgruhler gravatar image

You are correct, that there is no build process per se with python-only packages. Note though, that you still need the CMakeLists.txt for catkin to function properly.

In the end, the build_depend and build_export_depend tags are practically irrelevant for python-only packages. You only need to specify your python-based dependencies via exec_depend.

The catkin docs state, however, to import any message packages using the depend tag, even though exec_depend would be enough. Though I'm not sure why that's the case...

edit flag offensive delete link more

Comments

Thanks for the answer! The link to the doc is very useful.

Sparkle Eyes gravatar image Sparkle Eyes  ( 2019-05-28 14:49:48 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-05-27 15:39:11 -0600

Seen: 3,093 times

Last updated: May 28 '19