Skip to content

Commit

Permalink
Fix cargo build and format python code
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 4, 2023
1 parent f5fc315 commit 3bd154e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/python_interpreter/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl InterpreterConfig {
target.target_env().to_string().replace("musl", "gnu")
}
}
PyPy => "gnu".to_string(),
PyPy | GraalPy => "gnu".to_string(),
};
match (target.target_os(), python_impl) {
(Os::Linux, CPython) => {
Expand Down
4 changes: 2 additions & 2 deletions src/python_interpreter/get_interpreter_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_abi_tag():
abi = "-".join(soabi.split("-")[:3])
return abi.replace(".", "_").replace("-", "_")
else:
return (sysconfig.get_config_var("SOABI") or "-").split("-")[1] or None,
return (sysconfig.get_config_var("SOABI") or "-").split("-")[1]


metadata = {
Expand All @@ -47,7 +47,7 @@ def get_abi_tag():
"interpreter": platform.python_implementation().lower(),
"ext_suffix": ext_suffix,
"soabi": sysconfig.get_config_var("SOABI") or None,
"abi_tag": get_abi_tag(),
"abi_tag": get_abi_tag() or None,
"platform": sysconfig.get_platform(),
# This one isn't technically necessary, but still very useful for sanity checks
"system": platform.system().lower(),
Expand Down

0 comments on commit 3bd154e

Please sign in to comment.