Possible to build pure python package for ros1 and ros2 with one package.xml/CMakeLists file?
I have a pure python pacakge. Currently I have a CMakeLists and package.xml file set up so that it builds correctly with ros 1. If I add the ament_python
build type to my package.xml then it also works great for ros 2 but then I can't build it for ros 1.
Is there any way out of this that doesn't require me to keep two branches/separate ros2 repo (that isn't writing a giant cmake file with lots of conditionals)?