[ros-users] [Discourse.ros.org] [Next Generation ROS] Mixed python/cpp Ament package

William Woodall ros.discourse at gmail.com
Wed Mar 15 05:54:40 UTC 2017




It looks like you're mixing CMake (you have a `CMakeLists.txt`) and Python's setuptools (you have a full `setup.py` file as well). Our build tool doesn't support dual build system packages like this. When building your package it will either run `cmake` or `python setup.py ...` but not both.

If you need both then another solution will need to be found. Perhaps calling the `setup.py` from the `CMakeLists.txt` or replacing the functionality of the `setup.py` with just cmake code or replacing the functionality of the CMake code within `setup.py` using [C++ Extensions](https://docs.python.org/3/distutils/setupscript.html#extension-source-files), which @dirk-thomas linked to before.

We don't currently have such an example as you've setup here. Specifically something that contains non-trivial CMake code (which would not easily be replicated with Python's C++ Extensions) as well as a `setup.py` file which uses `entry_points` . Unfortunately, all I can say is that we don't have a solution for this yet and I don't know what the best strategy forward is at the moment.






---
[Visit Topic](https://discourse.ros.org/t/mixed-python-cpp-ament-package/1452/10) or reply to this email to respond.




More information about the ros-users mailing list