Make preview Python registration on Windows non-fatal (#14614)

Same as #14612 for registration with the Windows Registry.
This commit is contained in:
Zanie Blue 2025-07-15 12:29:11 -05:00 committed by GitHub
parent bb1e9a247c
commit d2c81e503f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 45 additions and 13 deletions

View file

@ -4954,6 +4954,17 @@ pub struct PythonInstallArgs {
#[arg(long, overrides_with("bin"), conflicts_with("default"))]
pub no_bin: bool,
/// Register the Python installation in the Windows registry.
///
/// This is the default behavior on Windows. If this flag is provided explicitly, uv will error if the
/// registry entry cannot be created.
#[arg(long, overrides_with("no_registry"), hide = true)]
pub registry: bool,
/// Do not register the Python installation in the Windows registry.
#[arg(long, overrides_with("registry"))]
pub no_registry: bool,
/// The Python version(s) to install.
///
/// If not provided, the requested Python version(s) will be read from the `UV_PYTHON`