Skip to content

Commit 1d8dac1

Browse files
authored
Fix uv python install --default note about multiple requests (#10011)
1 parent 4d3c1b3 commit 1d8dac1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

crates/uv-cli/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4354,8 +4354,7 @@ pub struct PythonInstallArgs {
43544354
/// 3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3`
43554355
/// and `python`.
43564356
///
4357-
/// If multiple Python versions are requested during the installation, the first request will be
4358-
/// the default.
4357+
/// If multiple Python versions are requested, uv will exit with an error.
43594358
#[arg(long)]
43604359
pub default: bool,
43614360
}

crates/uv/tests/it/help.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,7 @@ fn help_subsubcommand() {
540540
3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3`
541541
and `python`.
542542
543-
If multiple Python versions are requested during the installation, the first request will
544-
be the default.
543+
If multiple Python versions are requested, uv will exit with an error.
545544
546545
Cache options:
547546
-n, --no-cache

docs/reference/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4709,7 +4709,7 @@ uv python install [OPTIONS] [TARGETS]...
47094709

47104710
<p>Alternative Python variants will still include their tag. For example, installing 3.13+freethreaded with <code>--default</code> will include in <code>python3t</code> and <code>pythont</code>, not <code>python3</code> and <code>python</code>.</p>
47114711

4712-
<p>If multiple Python versions are requested during the installation, the first request will be the default.</p>
4712+
<p>If multiple Python versions are requested, uv will exit with an error.</p>
47134713

47144714
</dd><dt><code>--directory</code> <i>directory</i></dt><dd><p>Change to the given directory prior to running the command.</p>
47154715

0 commit comments

Comments
 (0)