Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Install scripts properly in symlink installs #57

Merged
merged 1 commit into from
Jun 24, 2020
Merged

Conversation

gbiggs
Copy link
Member

@gbiggs gbiggs commented Jun 24, 2020

When using colcon build --symlink-install, the installation method used for Python packages is different. It uses python setup.py develop instead of python setup.py install (see https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode). This requires a separate section in the setup.cfg file. Without it, the scripts get copied to the <install-prefix>/bin directory instead of <install-prefix>/lib/<pkgname>. They can be executed directly but will not work with ros2 run.

The fix is to add a develop section to setup.cfg that specifies where scripts should be linked to when installing in development mode. See here for an example.

Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
@Yadunund Yadunund merged commit 6fab7c4 into master Jun 24, 2020
@Yadunund Yadunund deleted the fix_symlink_install branch June 24, 2020 06:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants