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

ioc: allow pip to install packages system-wide. #93

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

henriquesimoes
Copy link
Collaborator

Since Debian 12, installing packages outside a virtual environment is an error by default as first specified by PEP 668. The rationale for forcing this is not applicable in our context, since the container image is dedicated to the IOC under construction, which renders it an isolated environment of its own.

Users should still provide RUNTIME_PIP_PACKAGES that are compatible with the system packages, not really breaking the system, similarly to what is done for shared libraries.

Fixes: 39bb0d4 (base: update to Debian 12., 2024-10-31)

Since Debian 12, installing packages outside a virtual environment is an
error by default [1] as first specified by PEP 668 [2]. The rationale
for forcing this is not applicable in our context, since the container
image is dedicated to the IOC under construction, which renders it an
isolated environment of its own.

Users should still provide RUNTIME_PIP_PACKAGES that are compatible with
the system packages, not really breaking the system, similarly to what
is done for shared libraries.

[1] https://salsa.debian.org/python-team/packages/python-pip/-/commit/5aeba2464e36020a34e2bc074872771f5ef4973d
[2] https://peps.python.org/pep-0668

Fixes: 39bb0d4 (base: update to Debian 12., 2024-10-31)
@gustavosr8
Copy link
Contributor

LGTM

@henriquesimoes henriquesimoes merged commit 76c2b86 into main Dec 12, 2024
2 checks passed
@henriquesimoes henriquesimoes deleted the pip branch December 12, 2024 17:02
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.

3 participants