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

Add uv python install --default #8650

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

Add uv python install --default #8650

wants to merge 2 commits into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Oct 28, 2024

No description provided.

@zanieb zanieb force-pushed the zb/python-exec-default branch 2 times, most recently from 457a318 to 4579f3f Compare October 29, 2024 15:41
@zanieb zanieb force-pushed the zb/python-exec-dir branch 2 times, most recently from 783e70d to 00873e2 Compare October 29, 2024 16:28
@zanieb zanieb force-pushed the zb/python-exec-default branch 3 times, most recently from 5280eab to 0598d60 Compare October 29, 2024 22:29
@zanieb zanieb force-pushed the zb/python-exec-dir branch 5 times, most recently from bb90cbd to ae37a24 Compare October 30, 2024 14:05
Base automatically changed from zb/python-exec-dir to main October 30, 2024 14:13
zanieb added a commit that referenced this pull request Oct 30, 2024
…v python install` (#8458)

Updates `uv python install` to link `python3.x` in the executable
directory (i.e., `~/.local/bin`) to the the managed interpreter path.

Includes

- #8569 
- #8571 

Remaining work

- #8663 
- #8650 
- Add an opt-out setting and flag
- Update documentation
@zanieb zanieb force-pushed the zb/python-exec-default branch 2 times, most recently from 032950f to 43e7779 Compare October 30, 2024 15:15
zanieb added a commit that referenced this pull request Oct 30, 2024
Pulling out of #8650 for
readability.

Trying to clean this up to simplify extensions in the future. This is
not a strict refactor, there are behavioral changes here.

- Adds some structs for managing state.
- Addresses some likely inconsistent behavior for weird edge-cases. 
- We fill platform information before checking if a request is
satisfied.
- We error earlier if we can't find a download for the request, i.e.,
even if you somehow have it installed.
- Only reports versions as uninstalled if a download actually replaces
them.
- Moves some of the default output to tracing messages.
- Even if an installation was already satisfied, we'll check that it is
setup properly
@zanieb zanieb force-pushed the zb/python-exec-default branch 2 times, most recently from 2981c8d to 4e4d3cd Compare October 31, 2024 00:59
@zanieb zanieb added the preview Experimental behavior label Oct 31, 2024
zanieb added a commit that referenced this pull request Oct 31, 2024
@zanieb zanieb force-pushed the zb/python-exec-default branch 2 times, most recently from b2f0486 to 4f242a2 Compare October 31, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant