Why are overrides in setup.cfg necessary in Python ROS2 packages?
The tutorials have us create a setup.cfg
file with the contents:
[develop]
script-dir=$base/lib/<package-name>
[install]
install-scripts=$base/lib/<package-name>
This seems to break some common workflows related to pip install
when testing outside of a ROS environment, such as installing pytest
in CI or pip install -e .
for running local scripts.
- What is the role of setting setting
script-dir
andinstall-scripts
? - What is the recommended practice for CI to install dependencies and run automated tests?
thanks for any insights!
Just noting this here for future readers:
setup.cfg
is a standardsetuptools
file, not something invented for/by ROS 2. See also Python Packaging User Guide: Packaging and distributing projects.Thank you, that's a good point. In fact it's this fact which makes it conflict with other workflows, which is why I'm trying to understand how it interacts with ROS environments.
I've updated to title to better reflect my question