mirror of https://github.com/astral-sh/uv
fix: make query method of interpreter public (#2016)
## Summary Made the `query` method public again, as I believe this currently the only way to query a intepreter with a custom location. Closes: #2015
This commit is contained in:
parent
f487b2e8c1
commit
cd484d5d9b
|
|
@ -35,11 +35,7 @@ pub struct Interpreter {
|
||||||
|
|
||||||
impl Interpreter {
|
impl Interpreter {
|
||||||
/// Detect the interpreter info for the given Python executable.
|
/// Detect the interpreter info for the given Python executable.
|
||||||
pub(crate) fn query(
|
pub fn query(executable: &Path, platform: &Platform, cache: &Cache) -> Result<Self, Error> {
|
||||||
executable: &Path,
|
|
||||||
platform: &Platform,
|
|
||||||
cache: &Cache,
|
|
||||||
) -> Result<Self, Error> {
|
|
||||||
let info = InterpreterInfo::query_cached(executable, cache)?;
|
let info = InterpreterInfo::query_cached(executable, cache)?;
|
||||||
|
|
||||||
debug_assert!(
|
debug_assert!(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue