-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer system packages over pip packages #535
Comments
I currently face the same issue. I require |
I'll take care of this once the bump to Node.js v16 is done (#521). |
I've looked into this more and have a proposal. If you follow the docs for a source build, you:
The list of packages we currently install using setup-ros/src/package_manager/pip.ts Lines 5 to 62 in b074834
pip instead of apt (although they use choco and brew for some dependencies), so doing (mostly) the same steps for all platforms is easier. However, as we can see from the issues mentioned above, it doesn't work well.
On the other hand, ci.ros2.org's equivalent to step 1 (before the repos are even cloned) installs more packages, like I'd go with copying the official source build instructions for Ubuntu and leave Windows and macOS as-is. That means Ubuntu installs would have distro-specific The only risk is if this breaks existing configs/code, e.g., if someone changed their code to appease @emersonknapp @ijnek @Flova any thoughts? |
I think the state as it is currently was based on an older version of the setup instructions. But it may have been a copy of the |
@christophebedard Agree with your suggestions.
Personally, I wouldn't push changes that don't work locally so I think if this happens, it would only affect very few users, if any (assuming users aren't installing their dependencies through |
See ros-tooling/setup-ros#535 Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
See ros-tooling/setup-ros#535 Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
See ros-tooling/setup-ros#535 Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Description
The goal is to more closely match the packages installed:
mypy
end up being installed byrosdep
, which uses system packagesmypy
are manually installed using system packagesRelated Issues
Otherwise, when using
setup-ros
, we might get a newer version of a package from pip. This can lead to issues like ros2/ros2_tracing#27, where tests fail withsetup-ros
but not with ci.ros2.orgCompletion Criteria
** What needs to be true before we can call this "Done"? Bullet lists are appropriate. **
Implementation Notes / Suggestions
Compare with ci.ros2.org, e.g.: https://ci.ros2.org/job/ci_linux/17993/consoleFull#console-section-4
Testing Notes / Suggestions
Nothing new or different to test.
The text was updated successfully, but these errors were encountered: