Skip to content

Resolve unmanaged Python links from their own directory - #1696

Closed
zaniebot wants to merge 2 commits into
mainfrom
zb/future-20260912-python-relative-link-01
Closed

zaniebot wants to merge 2 commits into
mainfrom
zb/future-20260912-python-relative-link-01

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

uv python install checks a Unix executable symlink's relative target against the process working directory. This can overwrite a valid unmanaged Python without --force, or reject a dangling link when a same-named path exists in the working directory. Check the executable path after establishing that it is a symlink, so relative targets resolve from the link's directory. Non-symlink executables, inspection errors, and unmanaged Windows launchers still require --force.

Refs astral-sh#9706.

@astral-automations-bot astral-automations-bot Bot added the bug Something isn't working label Sep 12, 2026
@codspeed

codspeed Bot commented Sep 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 25 untouched benchmarks


Comparing zb/future-20260912-python-relative-link-01 (3df38af) with main (e251246)

Open in CodSpeed

@charliermarsh
charliermarsh marked this pull request as ready for review September 12, 2026 22:00
@astral-automations-bot

Copy link
Copy Markdown

Promoted to #21639.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants