mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Merge bf27cebf81
into f609e1ddaf
This commit is contained in:
commit
971894d578
1 changed files with 6 additions and 3 deletions
|
@ -393,7 +393,8 @@ impl PythonInstallationKey {
|
|||
/// Return a canonical name for a minor versioned executable.
|
||||
pub fn executable_name_minor(&self) -> String {
|
||||
format!(
|
||||
"python{maj}.{min}{var}{exe}",
|
||||
"{name}{maj}.{min}{var}{exe}",
|
||||
name = self.implementation.executable_name(),
|
||||
maj = self.major,
|
||||
min = self.minor,
|
||||
var = self.variant.suffix(),
|
||||
|
@ -404,7 +405,8 @@ impl PythonInstallationKey {
|
|||
/// Return a canonical name for a major versioned executable.
|
||||
pub fn executable_name_major(&self) -> String {
|
||||
format!(
|
||||
"python{maj}{var}{exe}",
|
||||
"{name}{maj}{var}{exe}",
|
||||
name = self.implementation.executable_name(),
|
||||
maj = self.major,
|
||||
var = self.variant.suffix(),
|
||||
exe = std::env::consts::EXE_SUFFIX
|
||||
|
@ -414,7 +416,8 @@ impl PythonInstallationKey {
|
|||
/// Return a canonical name for an un-versioned executable.
|
||||
pub fn executable_name(&self) -> String {
|
||||
format!(
|
||||
"python{var}{exe}",
|
||||
"{name}{var}{exe}",
|
||||
name = self.implementation.executable_name(),
|
||||
var = self.variant.suffix(),
|
||||
exe = std::env::consts::EXE_SUFFIX
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue