[ros-users] [Discourse.ros.org] [Next Generation ROS] Software reuse in ROS1 and ROS2
ros.discourse at gmail.com
Fri Jul 21 19:43:33 UTC 2017
[quote="Paul_Bovbel, post:5, topic:2262"]
Not sure how the story would work for python. Forgive my ignorance of python packaging - a pure package in that case would just be a setuptools setup.py type of thing? Is there any way to make a package that would build (be referenceable as a dependency/end up on the PYTHONPATH) in both a ROS1 and ROS2 distro?
In ROS 2 pure Python packages (using `setuptools`) are already supported. In ROS 1 that is not the case. In ROS 1 the `setup.py` file is being invoked from within CMake and some features (like entry points are not available at the moment. But it should be possible to add support for something like that in ROS 1 (there is no technical reason why that wouldn't be feasible).
[Visit Topic](https://discourse.ros.org/t/software-reuse-in-ros1-and-ros2/2262/7) or reply to this email to respond.
More information about the ros-users