From aa529525123073ebdc33cf33ffba25641ace09e7 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 10 Sep 2024 13:41:31 -0500 Subject: [PATCH] Deduplicate implementation for `python_installation_from_directory` (#7267) --- crates/uv-python/src/discovery.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/uv-python/src/discovery.rs b/crates/uv-python/src/discovery.rs index 0a3a075432fd..a71709254451 100644 --- a/crates/uv-python/src/discovery.rs +++ b/crates/uv-python/src/discovery.rs @@ -676,10 +676,7 @@ fn python_installation_from_directory( cache: &Cache, ) -> Result { let executable = virtualenv_python_executable(path); - Ok(PythonInstallation { - source: PythonSource::ProvidedPath, - interpreter: Interpreter::query(executable, cache)?, - }) + python_installation_from_executable(&executable, cache) } /// Lazily iterate over all Python interpreters on the path with the given executable name.