Add a common abstraction to discover PEP 723 script interpreters (#10132)

## Summary

This logic is already repeated twice, and I'm on the verge of adding a
third.

(No behavioral changes.)
This commit is contained in:
Charlie Marsh
2024-12-23 19:29:37 -05:00
committed by GitHub
parent 6ed7302432
commit 9279a125e9
10 changed files with 133 additions and 114 deletions
+1
View File
@@ -229,6 +229,7 @@ impl PythonInstallation {
&self.interpreter
}
/// Consume the [`PythonInstallation`] and return the [`Interpreter`].
pub fn into_interpreter(self) -> Interpreter {
self.interpreter
}