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

Document how to disable path modifications during install #7090

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ Request a specific version by including it in the URL:
$ powershell -c "irm https://astral.sh/uv/0.4.5/install.ps1 | iex"
```

!!! tip

The installer will update your shell profiles to ensure the uv binary is on your `PATH`. To
disable this behavior, set `INSTALLER_NO_MODIFY_PATH=1`. For example:

```
INSTALLER_NO_MODIFY_PATH=1 bash -c 'curl -LsSf https://astral.sh/uv/install.sh | sh'
```

### PyPI

For convenience, uv is published to [PyPI](https://pypi.org/project/uv/).
Expand Down Expand Up @@ -117,6 +126,11 @@ When uv is installed via the standalone installer, it can update itself on-deman
$ uv self update
```

!!! tip

Updating uv will re-run the installer and can modify your shell profiles. To disable this
behavior, set `INSTALLER_NO_MODIFY_PATH=1`.

When another installation method is used, self-updates are disabled. Use the package manager's
upgrade method instead. For example, with `pip`:

Expand Down
Loading