mirror of https://github.com/astral-sh/uv
Add `ProvidedPath` to interpreter sources considered when `UV_TEST_PYTHON_PATH` is set (#4027)
Just a theory, but I presume this would close https://github.com/astral-sh/uv/issues/4023. I'm not sure how else we'd end up in this case.
This commit is contained in:
parent
5db7f7b3ac
commit
91c5ac44ac
|
|
@ -1177,11 +1177,12 @@ impl SourceSelector {
|
|||
Self::from_sources([InterpreterSource::ManagedToolchain])
|
||||
} else if env::var_os("UV_TEST_PYTHON_PATH").is_some() {
|
||||
debug!(
|
||||
"Only considering search path and active environments due to `UV_TEST_PYTHON_PATH`"
|
||||
"Only considering search path, provided path, and active environments due to `UV_TEST_PYTHON_PATH`"
|
||||
);
|
||||
Self::from_sources([
|
||||
InterpreterSource::ActiveEnvironment,
|
||||
InterpreterSource::SearchPath,
|
||||
InterpreterSource::ProvidedPath,
|
||||
])
|
||||
} else {
|
||||
match system {
|
||||
|
|
|
|||
Loading…
Reference in New Issue