Revert "Env variables for python downloads" (#6431)

This reverts commit bbd9adaa40 from #6416
— the Python download variable is not aligned with the setting.
This commit is contained in:
Zanie Blue 2024-08-22 08:29:09 -05:00 committed by GitHub
parent 582e5a316f
commit fc9fdd2dbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 50 deletions

View file

@ -115,30 +115,16 @@ pub struct GlobalArgs {
global = true,
long,
help_heading = "Python options",
display_order = 700,
env = "UV_PYTHON_PREFERENCE"
display_order = 700
)]
pub python_preference: Option<PythonPreference>,
/// Allow automatically downloading Python when required.
#[arg(
global = true,
long,
help_heading = "Python options",
hide = true,
value_parser = clap::builder::BoolishValueParser::new(),
env = "UV_ALLOW_PYTHON_DOWNLOADS"
)]
#[arg(global = true, long, help_heading = "Python options", hide = true)]
pub allow_python_downloads: bool,
/// Disable automatic downloads of Python.
#[arg(
global = true,
long,
help_heading = "Python options",
value_parser = clap::builder::BoolishValueParser::new(),
env = "UV_NO_PYTHON_DOWNLOADS"
)]
#[arg(global = true, long, help_heading = "Python options")]
pub no_python_downloads: bool,
/// Deprecated version of [`Self::python_downloads`].