Allow Python requests to include +gil to require a GIL-enabled interpreter (#16537)
Addresses https://github.com/astral-sh/uv/pull/16142#issuecomment-3390586957 Nobody seems to have a good idea about how to spell this. "not free-threaded" would be the most technically correct, but I think "gil" will be more intuitive.
This commit is contained in:
@@ -460,7 +460,7 @@ impl PythonInstallationKey {
|
||||
"python{maj}.{min}{var}{exe}",
|
||||
maj = self.major,
|
||||
min = self.minor,
|
||||
var = self.variant.suffix(),
|
||||
var = self.variant.executable_suffix(),
|
||||
exe = std::env::consts::EXE_SUFFIX
|
||||
)
|
||||
}
|
||||
@@ -470,7 +470,7 @@ impl PythonInstallationKey {
|
||||
format!(
|
||||
"python{maj}{var}{exe}",
|
||||
maj = self.major,
|
||||
var = self.variant.suffix(),
|
||||
var = self.variant.executable_suffix(),
|
||||
exe = std::env::consts::EXE_SUFFIX
|
||||
)
|
||||
}
|
||||
@@ -479,7 +479,7 @@ impl PythonInstallationKey {
|
||||
pub fn executable_name(&self) -> String {
|
||||
format!(
|
||||
"python{var}{exe}",
|
||||
var = self.variant.suffix(),
|
||||
var = self.variant.executable_suffix(),
|
||||
exe = std::env::consts::EXE_SUFFIX
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user