mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Add support for configuring python-downloads
with UV_PYTHON_DOWNLOADS
(#6436)
Part of https://github.com/astral-sh/uv/issues/6406 Replaces #6416
This commit is contained in:
parent
99d278f9f5
commit
7502a963e1
7 changed files with 74 additions and 45 deletions
|
@ -58,6 +58,9 @@ uv accepts the following command-line arguments as environment variables:
|
|||
exclude distributions published after the specified date.
|
||||
- `UV_PYTHON_PREFERENCE`: Equivalent to the `--python-preference` command-line argument. Whether uv
|
||||
should prefer system or managed Python versions.
|
||||
- `UV_PYTHON_DOWNLOADS`: Equivalent to the
|
||||
[`python-downloads`](../reference/settings.md#python-downloads) setting and, when disabled, the
|
||||
`--no-python-downloads` option. Whether uv should allow Python downloads.
|
||||
|
||||
In each case, the corresponding command-line argument takes precedence over an environment variable.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue