Skip to content

Show managed symlinks with uv python list --managed-python#17998

Open
tavaresgmg wants to merge 1 commit intoastral-sh:mainfrom
tavaresgmg:fix/python-list-managed-symlinks-17959
Open

Show managed symlinks with uv python list --managed-python#17998
tavaresgmg wants to merge 1 commit intoastral-sh:mainfrom
tavaresgmg:fix/python-list-managed-symlinks-17959

Conversation

@tavaresgmg
Copy link
Copy Markdown
Contributor

Summary

Fixes uv python list --managed-python so it also includes search-path symlinks that point to uv-managed interpreters.

Previously, --managed-python only considered the managed installation source directly, which omitted managed symlink entries.

Changes

  • In python list, when python-preference is only-managed, discovery now includes managed + search-path sources for listing purposes.
  • Added a post-discovery filter to retain only managed interpreters in that mode.
  • Added an integration snapshot test covering --managed-python with managed symlinks on the test search path.

Verification

  • cargo test -p uv --test it python_list_downloads_installed
  • Result: 1 passed, 0 failed

Closes #17959.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 15, 2026

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing tavaresgmg:fix/python-list-managed-symlinks-17959 (8271595) with main (4432588)

Open in CodSpeed

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.

uv python list --managed-python doesn't show symlinks

1 participant