Skip to content

Conversation

TGRCdev
Copy link
Contributor

@TGRCdev TGRCdev commented Feb 22, 2023

This PR adds a check to the pip3 step that skips if the file EXTERNALLY-MANAGED is present within python's stdlib folder, indicating that the base environment is managed by an external manager, such as the OS's package manager. Closes #365.

See: PEP 668 – Marking Python base environments as “externally managed”

Standards checklist:

  • The PR title is descriptive.
  • The code compiles (cargo build)
  • The code passes rustfmt (cargo fmt)
  • The code passes clippy (cargo clippy)
  • The code passes tests (cargo test)
  • Optional: I have tested the code myself
    • I also tested that Topgrade skips the step where needed

If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.

@s34m
Copy link
Member

s34m commented Feb 23, 2023

Lgtm

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.

Pip3 step fails for externally managed environments (PEP 668)
2 participants