Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow pip to install on the system on Noble #69

Closed
wants to merge 1 commit into from

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Feb 9, 2024

Keep the system pip installations working on Noble by explicitly set the "break-system-packages" option after changes from https://peps.python.org/pep-0668/

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@@ -34,6 +34,10 @@ apt -y install \
python3-pip \
wget

# Allowing pip to install packages in the system
mkdir -p "${HOME}/.config/pip"
echo -e '[global]\nbreak-system-packages = true' > "${HOME}/.config/pip/pip.conf"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to use venv instead? I would think it'll be more future proof.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I've merged #74 before read this sorry. I'm going to close this one as superseded, we can improve the existing situation in a new PR.

@j-rivero
Copy link
Contributor Author

Resolved in #74

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

Successfully merging this pull request may close these issues.

2 participants