Symlink for config folder not working for ros2 python packages

asked 2021-11-12 20:56:00 -0500

thejeeb gravatar image

updated 2021-11-13 10:57:10 -0500

For a ros2 python package(ament_python) in galactic and rolling, aren't the files in the config folder supposed to be symbolically linked when doing a symlink-install build. It does this when config folders are installed in a cpp package (ament_cmake). But not for a python package. Am I missing something here? Is there some additional setup I need to do for this to work?

Details: In my python package setup.py file, I have the following for data_files:

data_files=[ ("share/ament_index/resource_index/packages", ["resource/" + package_name]), ("share/" + package_name, ["package.xml"]), (os.path.join("share", package_name, "config"), glob("config/*.yaml")), ],

I build the package using 'colcon build --symlink-install'. I expect the yaml files under install/my_pkg/share/my_pkg/config to be symbolically linked to the source files at src/my_repo/my_pkg/config. It isn't.

edit retag flag offensive close merge delete

Comments

Is it possible to share a little more information about your setup/situation? It's hard to make many conclusions with the information in the post really.

aprotyas gravatar image aprotyas  ( 2021-11-13 02:08:51 -0500 )edit

I added more details above

thejeeb gravatar image thejeeb  ( 2021-11-13 10:57:36 -0500 )edit