mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 07:47:27 +00:00
Deduplicate implementation for python_installation_from_directory
(#7267)
This commit is contained in:
parent
533c7e3bfd
commit
aa52952512
1 changed files with 1 additions and 4 deletions
|
@ -676,10 +676,7 @@ fn python_installation_from_directory(
|
||||||
cache: &Cache,
|
cache: &Cache,
|
||||||
) -> Result<PythonInstallation, crate::interpreter::Error> {
|
) -> Result<PythonInstallation, crate::interpreter::Error> {
|
||||||
let executable = virtualenv_python_executable(path);
|
let executable = virtualenv_python_executable(path);
|
||||||
Ok(PythonInstallation {
|
python_installation_from_executable(&executable, cache)
|
||||||
source: PythonSource::ProvidedPath,
|
|
||||||
interpreter: Interpreter::query(executable, cache)?,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Lazily iterate over all Python interpreters on the path with the given executable name.
|
/// Lazily iterate over all Python interpreters on the path with the given executable name.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue