Skip to content

Commit

Permalink
Fix GNU/Hurd support (#2307)
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul authored Nov 17, 2024
1 parent e67b566 commit 39ec7bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/python_interpreter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ impl PythonInterpreter {
let target = &context.target;
let use_sysconfig_platform = target.is_windows()
|| (target.is_linux() && platform_tags.iter().any(|tag| !tag.is_portable()))
|| target.is_illumos()
|| target.is_hurd();
|| target.is_illumos();
let platform = if use_sysconfig_platform {
if let Some(platform) = self.platform.clone() {
platform
Expand Down
2 changes: 1 addition & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl Target {
// This isn't real, there's no sys.platform here
Os::Wasi => "wasi",
Os::Aix => "aix",
Os::Hurd => "gnu0",
Os::Hurd => "gnu",
}
}

Expand Down
File renamed without changes.

0 comments on commit 39ec7bf

Please sign in to comment.