Skip to content

Commit

Permalink
Fixup ff77980
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 29, 2021
1 parent 8281870 commit 9436c3e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/python_interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,14 @@ impl PythonInterpreter {
// We don't use platform from sysconfig on macOS
None
} else {
message.platform
Some(
message
.platform
.to_lowercase()
.replace('-', "_")
.replace('.', "_"),
)
};
let platform = platform.to_lowercase().replace('-', "_").replace('.', "_");

Ok(Some(PythonInterpreter {
major: message.major,
Expand All @@ -522,7 +527,7 @@ impl PythonInterpreter {
interpreter_kind: interpreter,
abi_tag: message.abi_tag,
libs_dir: PathBuf::from(message.base_prefix).join("libs"),
platform: Some(platform),
platform,
runnable: true,
}))
}
Expand Down

0 comments on commit 9436c3e

Please sign in to comment.