Ask Your Question

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).


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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


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

Your Answer

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

Add Answer

Question Tools



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

Seen: 761 times

Last updated: May 28 '19