Skip to content

Commit 7fb09e3

Browse files
committed
fix platform tag for graalpy
1 parent e597521 commit 7fb09e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/python_interpreter/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,14 @@ impl PythonInterpreter {
523523
// GraalPy suffers from pypa/packaging#614, where
524524
// packaging misdetects it as a 32-bit implementation,
525525
// so GraalPy adds the correct platform itself, e.g.
526-
// graalpy 3.10 23.1 => numpy-1.23.5-graalpy310-graalpy231_310_native_x86_64_linux-linux_i686.whl
526+
// graalpy 3.10 23.1 => numpy-1.23.5-graalpy310-graalpy231_310_native_manylinux2014_x86_64.whl
527527
format!(
528-
"graalpy{major}{minor}-{abi_tag}_{arch}_{os}-{os}_i686",
528+
"graalpy{major}{minor}-{abi_tag}_{platform}",
529529
major = self.major,
530530
minor = self.minor,
531531
abi_tag = calculate_abi_tag(&self.ext_suffix)
532532
.expect("GraalPy's syconfig didn't define a valid `EXT_SUFFIX` ಠ_ಠ"),
533-
os = target.get_python_os(),
534-
arch = target.get_python_arch(),
533+
platform = platform,
535534
)
536535
}
537536
}

0 commit comments

Comments
 (0)