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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 133 additions and 114 deletions

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
}