Skip to content

Commit

Permalink
fix platform tag for graalpy
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Sep 15, 2023
1 parent e597521 commit b436cb1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/python_interpreter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,18 +520,15 @@ impl PythonInterpreter {
)
}
InterpreterKind::GraalPy => {
// GraalPy suffers from pypa/packaging#614, where
// packaging misdetects it as a 32-bit implementation,
// so GraalPy adds the correct platform itself, e.g.
// graalpy 3.10 23.1 => numpy-1.23.5-graalpy310-graalpy231_310_native_x86_64_linux-linux_i686.whl
// GraalPy like PyPy uses its version as part of the ABI
// graalpy 3.10 23.1 => numpy-1.23.5-graalpy310-graalpy231_310_native_manylinux2014_x86_64.whl
format!(
"graalpy{major}{minor}-{abi_tag}_{arch}_{os}-{os}_i686",
"graalpy{major}{minor}-{abi_tag}_{platform}",
major = self.major,
minor = self.minor,
abi_tag = calculate_abi_tag(&self.ext_suffix)
.expect("GraalPy's syconfig didn't define a valid `EXT_SUFFIX` ಠ_ಠ"),
os = target.get_python_os(),
arch = target.get_python_arch(),
platform = platform,
)
}
}
Expand Down

0 comments on commit b436cb1

Please sign in to comment.