mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Make --universal
and --python-platform
mutually exclusive (#4598)
## Summary Open to just making this a warning but no strong opinion. Closes https://github.com/astral-sh/uv/issues/4593. ## Test Plan Failure: ``` ❯ echo "pandas==2.2.2" | cargo run pip compile --universal -p 3.11 --no-header - --python-platform linux Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s Running `target/debug/uv pip compile --universal -p 3.11 --no-header - --python-platform linux` error: the argument '--universal' cannot be used with '--python-platform <PYTHON_PLATFORM>' Usage: uv pip compile --universal --python-version <PYTHON_VERSION> --no-header <SRC_FILE>... For more information, try '--help'. ```
This commit is contained in:
parent
9ac1a29c7a
commit
4c1181b9e1
1 changed files with 5 additions and 1 deletions
|
@ -575,7 +575,11 @@ pub struct PipCompileArgs {
|
|||
/// In universal mode, the current Python version (or user-provided `--python-version`) will be
|
||||
/// treated as a lower bound. For example, `--universal --python-version 3.7` would produce a
|
||||
/// universal resolution for Python 3.7 and later.
|
||||
#[arg(long, overrides_with("no_universal"))]
|
||||
#[arg(
|
||||
long,
|
||||
overrides_with("no_universal"),
|
||||
conflicts_with("python_platform")
|
||||
)]
|
||||
pub universal: bool,
|
||||
|
||||
#[arg(long, overrides_with("universal"), hide = true)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue