Simplify ament_python_install_package() macro.#326
Conversation
Do not delegate to setuptools, install egg-info manually. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
ivanpauno
left a comment
There was a problem hiding this comment.
Sounds reasonable to me
|
Alright, CI is green, reviewer's happy. Going in ! |
|
|
||
| find_package(ament_cmake_core REQUIRED) | ||
|
|
||
| set(ament_cmake_python_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake") |
Follow-up after #326. Should've been removed then. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Follow-up after #326. Should've been removed then. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
|
@hidmic It seems this PR breaks ability to create Python subpackages. Before (in Foxy) I was able to: ament_python_install_package(${PROJECT_NAME}/subpackage
PACKAGE_DIR src/mypackage)and it would create a subpackage. In Rolling it shows the following error: Is there a workaround or it is broken on purpose? |
IIRC the first argument was always expected to be a package name, which shouldn't contain any If you have many package you can still use |
Alternative to #316, #323, #324, #325. This patch no longer delegates to
setuptools, it simply builds and installs an.egg-infodirectory manually. It's a bit hacky, but it's less fragile than the original approach.CI up to
test_communication(to exerciserclpyandrosidlpackages):CI up to
test_communicationwith--symlink-install: