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:
Tim de Jager 2024-02-27 15:39:50 +01:00 committed by GitHub
parent f487b2e8c1
commit cd484d5d9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,11 +35,7 @@ pub struct Interpreter {
impl Interpreter {
/// Detect the interpreter info for the given Python executable.
pub(crate) fn query(
executable: &Path,
platform: &Platform,
cache: &Cache,
) -> Result<Self, Error> {
pub fn query(executable: &Path, platform: &Platform, cache: &Cache) -> Result<Self, Error> {
let info = InterpreterInfo::query_cached(executable, cache)?;
debug_assert!(