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

Implement --break-system-packages #2249

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Mar 6, 2024

Summary

Per the EXTERNALLY-MANAGED spec, installers SHOULD add a --break-system-packages flag to allow users to override the package manager warnings raised by EXTERNALLY-MANAGED. This PR adds the flag to comply with the spec, and enable system Python installs on newer versions of certain distributions.

While this flag feels kind of bad, it's not necessarily a change in behavior. We already allow installing into these system distributions -- it's just that EXTERNALLY-MANAGED doesn't exist for distributions that were packaged prior to the spec, so we don't run into this problem.

Closes #2234.

@charliermarsh charliermarsh added the compatibility Compatibility with another interface or tool label Mar 6, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 6, 2024 20:18
@charliermarsh charliermarsh merged commit a5d5e99 into main Mar 6, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/break-system-packages branch March 6, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with another interface or tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv pip install --system doesn't not respect PIP_BREAK_SYSTEM_PACKAGES
2 participants