Ask Your Question
2

How do I integrate thirdparty Python Dependencies?

asked 2011-07-05 04:23:33 -0500

Bradley Powers gravatar image

updated 2011-07-05 12:43:08 -0500

kwc gravatar image

Hello,

I'd like to make my package have a dependency on a Python package called pymorph. Is there a supported way to require a dependency like this?

Thanks, Bradley Powers

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2011-07-05 04:56:38 -0500

kwc gravatar image

updated 2011-07-05 12:38:27 -0500

You could either wrap the source for pymorph in a ROS package, or you could write a script in the rosdep.yaml that downloads and installs Pymorph. You can see rosdep.yaml examples here: http://www.ros.org/wiki/rosdep/rosdep.yaml#Examples

If you use the rosdep solution, please see the first two tutorials on the rosdep page:

http://www.ros.org/wiki/rosdep

They will walk you through adding a rosdep dependency and declaring support for it in your OS. NOTE: rosdep dependencies should be ones that are easily available via package managers like apt and macports.

edit flag offensive delete link more

Comments

So, I certainly know how to add a regular dependency in the manifest.xml file, but the issue is that pymorph isn't available via apt...
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 07:03:55 -0500 )edit
You could either wrap the source for pymorph in a ROS package, or you could write a script in the rosdep.yaml that downloads and installs Pymorph. You can see rosdep.yaml examples here: http://www.ros.org/wiki/rosdep/rosdep.yaml#Examples
kwc gravatar image kwc  ( 2011-07-05 07:05:23 -0500 )edit
Can you make this comment an answer so that I can mark it as answered? Thank you!
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 12:28:55 -0500 )edit
Thank you for updating the answer!
Bradley Powers gravatar image Bradley Powers  ( 2011-07-05 13:02:45 -0500 )edit
1

answered 2011-07-05 04:40:14 -0500

makokal gravatar image

You can add the dependency like this

<rosdep name="pymorph"/>

in the manifest.xml file of the package.

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: 2011-07-05 04:23:33 -0500

Seen: 1,081 times

Last updated: Jul 05 '11