Allow no-op --no-compile flag on CLI (#2816)
Closes https://github.com/astral-sh/uv/issues/2771.
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user