Skip to content
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

Install colcon and vcs from packages #79

Open
wants to merge 7 commits into
base: noble
Choose a base branch
from
Open

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Jul 30, 2024

This is a sidecar of #78 . Now that the use of pip for system-wide packages is restricted and dangerous, we probably want to stop using it as a package manager for our system installations.

vcs is not that critical but for colcon the use of it from a virtualenv is affecting the platform for getting system dependencies at build time, something that is more a side effect and not desired action. See the use of of colcon with system-dependencies for gz in #78.

In this PR I'm mainly getting:

  • python3-vcstool from Ubuntu vcstool from its packagecloud repository
  • colcon from its packagecloud repository

entrypoint.sh Outdated Show resolved Hide resolved
@j-rivero j-rivero requested a review from azeey July 31, 2024 11:07
Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

mkdir -p /etc/apt/keyrings/
for tool in colcon vcstool; do
curl -fsSL "https://packagecloud.io/dirk-thomas/${tool}/gpgkey" | gpg --dearmor > "/etc/apt/keyrings/${tool}-archive-keyring.gpg"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/${tool}-archive-keyring.gpg] https://packagecloud.io/dirk-thomas/${tool}/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/${tool}.list > /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that vcstool is coming from a third-party repo as well. This probably what we want since the one in Ubuntu upstream is usually outdated, but the statement in the PR description mentions that we're using the one from upstream, so I was a little confused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the PR description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants