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

Remove duplicate log when searching for interpreters #9092

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
6 changes: 2 additions & 4 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,9 +807,8 @@ pub fn find_python_installations<'a>(
}
})),
PythonRequest::Directory(path) => Box::new(std::iter::once({
debug!("Checking for Python interpreter in {request}");
if preference.allows(PythonSource::ProvidedPath) {
debug!("Checking for Python interpreter at {request}");
debug!("Checking for Python interpreter in {request}");
match python_installation_from_directory(path, cache) {
Ok(installation) => Ok(FindPythonResult::Ok(installation)),
Err(InterpreterError::NotFound(_)) => {
Expand All @@ -834,9 +833,8 @@ pub fn find_python_installations<'a>(
}
})),
PythonRequest::ExecutableName(name) => {
debug!("Searching for Python interpreter with {request}");
if preference.allows(PythonSource::SearchPath) {
debug!("Checking for Python interpreter at {request}");
debug!("Searching for Python interpreter with {request}");
Box::new(
python_interpreters_with_executable_name(name, cache)
.filter(move |result| {
Expand Down
Loading