mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +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
|
@ -120,11 +120,13 @@ pub struct GlobalArgs {
|
|||
)]
|
||||
pub python_preference: Option<PythonPreference>,
|
||||
|
||||
/// Allow automatically downloading Python when required.
|
||||
#[allow(clippy::doc_markdown)]
|
||||
/// Allow automatically downloading Python when required. [env: "UV_PYTHON_DOWNLOADS=auto"]
|
||||
#[arg(global = true, long, help_heading = "Python options", hide = true)]
|
||||
pub allow_python_downloads: bool,
|
||||
|
||||
/// Disable automatic downloads of Python.
|
||||
#[allow(clippy::doc_markdown)]
|
||||
/// Disable automatic downloads of Python. [env: "UV_PYTHON_DOWNLOADS=never"]
|
||||
#[arg(global = true, long, help_heading = "Python options")]
|
||||
pub no_python_downloads: bool,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue