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:
Zanie Blue
2025-11-03 13:35:52 -06:00
committed by GitHub
parent a87a3bbae4
commit 60a811e715
12 changed files with 97 additions and 39 deletions
+3 -3
View File
@@ -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
)
}