Construct PythonInstallation early instead of passing around source / interpreter separately (#18564)

This commit is contained in:
Zanie Blue
2026-03-19 08:21:23 -05:00
committed by GitHub
parent 6d628da78a
commit 5e25583c42
2 changed files with 58 additions and 58 deletions
-9
View File
@@ -38,15 +38,6 @@ pub struct PythonInstallation {
}
impl PythonInstallation {
/// Create a new [`PythonInstallation`] from a source, interpreter tuple.
pub(crate) fn from_tuple(tuple: (PythonSource, Interpreter)) -> Self {
let (source, interpreter) = tuple;
Self {
source,
interpreter,
}
}
/// Find an installed [`PythonInstallation`].
///
/// This is the standard interface for discovering a Python installation for creating