mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 13:58:29 +00:00
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:
parent
6ed7302432
commit
9279a125e9
10 changed files with 133 additions and 114 deletions
|
@ -229,6 +229,7 @@ impl PythonInstallation {
|
|||
&self.interpreter
|
||||
}
|
||||
|
||||
/// Consume the [`PythonInstallation`] and return the [`Interpreter`].
|
||||
pub fn into_interpreter(self) -> Interpreter {
|
||||
self.interpreter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue