Allow no-op `--no-compile` flag on CLI (#2816)

Closes https://github.com/astral-sh/uv/issues/2771.
This commit is contained in:
Charlie Marsh 2024-04-03 16:36:44 -04:00 committed by GitHub
parent 8eaaf65456
commit e0d55ef496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -677,6 +677,10 @@ struct PipSyncArgs {
#[clap(long)]
compile: bool,
/// Don't compile Python files to bytecode.
#[clap(long, hide = true, conflicts_with = "compile")]
no_compile: bool,
/// Settings to pass to the PEP 517 build backend, specified as `KEY=VALUE` pairs.
#[clap(long, short = 'C', alias = "config-settings")]
config_setting: Vec<ConfigSettingEntry>,
@ -938,6 +942,10 @@ struct PipInstallArgs {
#[clap(long)]
compile: bool,
/// Don't compile Python files to bytecode.
#[clap(long, hide = true, conflicts_with = "compile")]
no_compile: bool,
/// Settings to pass to the PEP 517 build backend, specified as `KEY=VALUE` pairs.
#[clap(long, short = 'C', alias = "config-settings")]
config_setting: Vec<ConfigSettingEntry>,