mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-24 13:43:45 +00:00
Display Python installation key for discovered interpreters (#5365)
> DEBUG Found `cpython-3.12.1-macos-aarch64-none` at `/Users/zb/Library/Application Support/uv/python/cpython-3.12.1-macos-aarch64-none/bin/python3` (managed installations) Instead of `<implementation> <version>` > DEBUG Found cpython 3.12.1 at `/Users/zb/Library/Application Support/uv/python/cpython-3.12.1-macos-aarch64-none/bin/python3` (managed installations)
This commit is contained in:
parent
2cdcc61da9
commit
7908436a76
3 changed files with 39 additions and 18 deletions
|
@ -17,7 +17,7 @@ use uv_fs::Simplified;
|
|||
use uv_warnings::warn_user_once;
|
||||
|
||||
use crate::downloads::PythonDownloadRequest;
|
||||
use crate::implementation::{ImplementationName, LenientImplementationName};
|
||||
use crate::implementation::ImplementationName;
|
||||
use crate::installation::PythonInstallation;
|
||||
use crate::interpreter::Error as InterpreterError;
|
||||
use crate::managed::ManagedPythonInstallations;
|
||||
|
@ -271,7 +271,7 @@ fn python_executables_from_installed<'a>(
|
|||
version.matches_version(&installation.version())
|
||||
})
|
||||
})
|
||||
.inspect(|installation| debug!("Found managed Python `{installation}`"))
|
||||
.inspect(|installation| debug!("Found managed installation `{installation}`"))
|
||||
.map(|installation| (PythonSource::Managed, installation.executable())))
|
||||
})
|
||||
})
|
||||
|
@ -508,9 +508,8 @@ fn python_interpreters_from_executables<'a>(
|
|||
.map(|interpreter| (source, interpreter))
|
||||
.inspect(|(source, interpreter)| {
|
||||
debug!(
|
||||
"Found {} {} at `{}` ({source})",
|
||||
LenientImplementationName::from(interpreter.implementation_name()),
|
||||
interpreter.python_full_version(),
|
||||
"Found `{}` at `{}` ({source})",
|
||||
interpreter.key(),
|
||||
path.display()
|
||||
);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue