Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uv python install --default note about multiple requests #10011

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading