Skip to content

Commit

Permalink
Fix uv python install --default note about multiple requests
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 18, 2024
1 parent 8f88f98 commit f2126e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4354,8 +4354,7 @@ pub struct PythonInstallArgs {
/// 3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3`
/// and `python`.
///
/// If multiple Python versions are requested during the installation, the first request will be
/// the default.
/// If multiple Python versions are requested, uv will exit with an error.
#[arg(long)]
pub default: bool,
}
Expand Down
3 changes: 1 addition & 2 deletions crates/uv/tests/it/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ fn help_subsubcommand() {
3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3`
and `python`.
If multiple Python versions are requested during the installation, the first request will
be the default.
If multiple Python versions are requested, uv will exit with an error.
Cache options:
-n, --no-cache
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -4709,7 +4709,7 @@ uv python install [OPTIONS] [TARGETS]...

<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>

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

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

Expand Down

0 comments on commit f2126e2

Please sign in to comment.