mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35: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.
|
/// Return a canonical name for a minor versioned executable.
|
||||||
pub fn executable_name_minor(&self) -> String {
|
pub fn executable_name_minor(&self) -> String {
|
||||||
format!(
|
format!(
|
||||||
"python{maj}.{min}{var}{exe}",
|
"{name}{maj}.{min}{var}{exe}",
|
||||||
|
name = self.implementation.executable_name(),
|
||||||
maj = self.major,
|
maj = self.major,
|
||||||
min = self.minor,
|
min = self.minor,
|
||||||
var = self.variant.suffix(),
|
var = self.variant.suffix(),
|
||||||
|
@ -404,7 +405,8 @@ impl PythonInstallationKey {
|
||||||
/// Return a canonical name for a major versioned executable.
|
/// Return a canonical name for a major versioned executable.
|
||||||
pub fn executable_name_major(&self) -> String {
|
pub fn executable_name_major(&self) -> String {
|
||||||
format!(
|
format!(
|
||||||
"python{maj}{var}{exe}",
|
"{name}{maj}{var}{exe}",
|
||||||
|
name = self.implementation.executable_name(),
|
||||||
maj = self.major,
|
maj = self.major,
|
||||||
var = self.variant.suffix(),
|
var = self.variant.suffix(),
|
||||||
exe = std::env::consts::EXE_SUFFIX
|
exe = std::env::consts::EXE_SUFFIX
|
||||||
|
@ -414,7 +416,8 @@ impl PythonInstallationKey {
|
||||||
/// Return a canonical name for an un-versioned executable.
|
/// Return a canonical name for an un-versioned executable.
|
||||||
pub fn executable_name(&self) -> String {
|
pub fn executable_name(&self) -> String {
|
||||||
format!(
|
format!(
|
||||||
"python{var}{exe}",
|
"{name}{var}{exe}",
|
||||||
|
name = self.implementation.executable_name(),
|
||||||
var = self.variant.suffix(),
|
var = self.variant.suffix(),
|
||||||
exe = std::env::consts::EXE_SUFFIX
|
exe = std::env::consts::EXE_SUFFIX
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue