mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-19 19:44:40 +00:00
Include the Python variant suffix in "Using Python ..." messages (#16536)
See https://github.com/astral-sh/uv/issues/16253#issuecomment-3393383573
This commit is contained in:
parent
82aa0d0ef5
commit
1e2ec4a50c
3 changed files with 16 additions and 10 deletions
|
|
@ -743,9 +743,10 @@ pub(crate) fn report_interpreter(
|
|||
printer.stderr(),
|
||||
"{}",
|
||||
format!(
|
||||
"Using {} {}",
|
||||
"Using {} {}{}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version()
|
||||
interpreter.python_version(),
|
||||
interpreter.variant().suffix(),
|
||||
)
|
||||
.dimmed()
|
||||
)?;
|
||||
|
|
@ -754,9 +755,10 @@ pub(crate) fn report_interpreter(
|
|||
printer.stderr(),
|
||||
"{}",
|
||||
format!(
|
||||
"Using {} {} interpreter at: {}",
|
||||
"Using {} {}{} interpreter at: {}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version(),
|
||||
interpreter.variant().suffix(),
|
||||
interpreter.sys_executable().user_display()
|
||||
)
|
||||
.dimmed()
|
||||
|
|
@ -766,16 +768,18 @@ pub(crate) fn report_interpreter(
|
|||
if managed {
|
||||
writeln!(
|
||||
printer.stderr(),
|
||||
"Using {} {}",
|
||||
"Using {} {}{}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version().cyan()
|
||||
interpreter.python_version().cyan(),
|
||||
interpreter.variant().suffix().cyan()
|
||||
)?;
|
||||
} else {
|
||||
writeln!(
|
||||
printer.stderr(),
|
||||
"Using {} {} interpreter at: {}",
|
||||
"Using {} {}{} interpreter at: {}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version(),
|
||||
interpreter.variant().suffix(),
|
||||
interpreter.sys_executable().user_display().cyan()
|
||||
)?;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1008,16 +1008,18 @@ impl ProjectInterpreter {
|
|||
if managed {
|
||||
writeln!(
|
||||
printer.stderr(),
|
||||
"Using {} {}",
|
||||
"Using {} {}{}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version().cyan()
|
||||
interpreter.python_version().cyan(),
|
||||
interpreter.variant().suffix().cyan(),
|
||||
)?;
|
||||
} else {
|
||||
writeln!(
|
||||
printer.stderr(),
|
||||
"Using {} {} interpreter at: {}",
|
||||
"Using {} {}{} interpreter at: {}",
|
||||
implementation.pretty(),
|
||||
interpreter.python_version(),
|
||||
interpreter.variant().suffix(),
|
||||
interpreter.sys_executable().user_display().cyan()
|
||||
)?;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1130,7 +1130,7 @@ fn python_install_freethreaded() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Using CPython 3.13.9
|
||||
Using CPython 3.13.9t
|
||||
Creating virtual environment at: .venv
|
||||
Activate with: source .venv/[BIN]/activate
|
||||
");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue