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

Bootstrap unmanaged uv installation #1742

Merged
merged 3 commits into from
Feb 21, 2025
Merged

Conversation

t-kalinowski
Copy link
Member

I noticed that uv self update will fail if there are multiple self-updating-capable uv installations on a system.

Typically, if a uv is already installed, reticulate will use that. reticulate only bootstraps a uv installation into its cache dir if uv is not found.

However, before this PR, if user installs uv manually after reticulate has bootstraped an installation, then self update will later error with:

warning: Self-update is only available for uv binaries installed via the standalone installation scripts.

If you installed uv with pip, brew, or another package manager, update uv with `pip install --upgrade`, `brew upgrade`, or similar.

This is because the self-updater checks the .config/uv/uv-receipt.json, which is written to by install scripts unless self-updating is disabled.

This PR switches to bootstrapping the installation with UV_UNMANAGED_INSTALL set.

@t-kalinowski t-kalinowski merged commit 9f50ca0 into main Feb 21, 2025
16 checks passed
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.

1 participant