mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Ignore py
not found errors during interpreter discovery (#4620)
Closes https://github.com/astral-sh/uv/issues/4522
This commit is contained in:
parent
3a627f3799
commit
af9c2e60aa
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,7 @@ use crate::downloads::PythonDownloadRequest;
|
|||
use crate::implementation::{ImplementationName, LenientImplementationName};
|
||||
use crate::interpreter::Error as InterpreterError;
|
||||
use crate::managed::InstalledToolchains;
|
||||
use crate::py_launcher::py_list_paths;
|
||||
use crate::py_launcher::{self, py_list_paths};
|
||||
use crate::toolchain::Toolchain;
|
||||
use crate::virtualenv::{
|
||||
conda_prefix_from_env, virtualenv_from_env, virtualenv_from_working_dir,
|
||||
|
@ -538,6 +538,11 @@ impl Error {
|
|||
false
|
||||
}
|
||||
},
|
||||
// Ignore `py` if it's not installed
|
||||
Error::PyLauncher(py_launcher::Error::NotFound) => {
|
||||
debug!("The `py` launcher could not be found to query for Python versions");
|
||||
false
|
||||
}
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue