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

Run CI #11670

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Run CI #11670

wants to merge 8 commits into from

Conversation

konstin
Copy link
Member

@konstin konstin commented Feb 20, 2025

Summary

Test Plan

@konstin konstin added the enhancement New feature or improvement to existing functionality label Feb 20, 2025
@konstin konstin force-pushed the konsti/sys-path-discovery branch 4 times, most recently from f2b0664 to 1c4850f Compare February 24, 2025 13:20
pradyunsg and others added 7 commits February 25, 2025 14:54
This better reflects the intended behavior of this object, which is to
serve as a database of InstalledPackages rather than a representation of
the relevant environment/interpreter path.
When a virtual environment is created, `sys.path` is modified. Instead
of reusing the base interpreter's `sys.path`, query the interpreter
again to get the new `sys.path` values.
We're reusing the system check which already tests installation in system and venv environment for different Python interpreters.
This mirrors the behavior of `pip list`: It shows only the first package in `sys.path`, which is the package that Python will load, and ignores the others.

In the JSON output, we show all packages, but tagged with a `shadowed` bool. The exception is `--outdated`, in which case we only check if the main packages are outdated (updating shadowed packages is ineffective).

We show a hint (stderr, not stdout like the main output), if shadowed packages exist.
@konstin konstin force-pushed the konsti/sys-path-discovery branch from 1c4850f to 856e1f7 Compare February 25, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants