mirror of https://github.com/astral-sh/uv
Do not display "py launcher" source in error messages on Unix (#3738)
This commit is contained in:
parent
2a01cbed65
commit
b8ef436c42
|
|
@ -37,7 +37,7 @@ pub enum InterpreterRequest {
|
||||||
ExecutableName(String),
|
ExecutableName(String),
|
||||||
/// A Python implementation without a version e.g. `pypy`
|
/// A Python implementation without a version e.g. `pypy`
|
||||||
Implementation(ImplementationName),
|
Implementation(ImplementationName),
|
||||||
/// A Python implementation name and version e.g. `pypy3.8`
|
/// A Python implementation name and version e.g. `pypy3.8` or `pypy@3.8`
|
||||||
ImplementationVersion(ImplementationName, VersionRequest),
|
ImplementationVersion(ImplementationName, VersionRequest),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -522,6 +522,7 @@ pub fn find_default_interpreter(cache: &Cache) -> Result<InterpreterResult, Erro
|
||||||
let request = InterpreterRequest::Version(VersionRequest::Default);
|
let request = InterpreterRequest::Version(VersionRequest::Default);
|
||||||
let sources = SourceSelector::from_sources([
|
let sources = SourceSelector::from_sources([
|
||||||
InterpreterSource::SearchPath,
|
InterpreterSource::SearchPath,
|
||||||
|
#[cfg(windows)]
|
||||||
InterpreterSource::PyLauncher,
|
InterpreterSource::PyLauncher,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -1051,6 +1052,7 @@ impl SourceSelector {
|
||||||
Self::from_sources([
|
Self::from_sources([
|
||||||
InterpreterSource::ProvidedPath,
|
InterpreterSource::ProvidedPath,
|
||||||
InterpreterSource::SearchPath,
|
InterpreterSource::SearchPath,
|
||||||
|
#[cfg(windows)]
|
||||||
InterpreterSource::PyLauncher,
|
InterpreterSource::PyLauncher,
|
||||||
InterpreterSource::ManagedToolchain,
|
InterpreterSource::ManagedToolchain,
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue