Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add riscv64 to supported Python platform tags #8660

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/uv-platform-tags/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pub enum Arch {
#[serde(alias = "amd64")]
X86_64,
S390X,
Riscv64,
}

impl fmt::Display for Arch {
Expand All @@ -99,6 +100,7 @@ impl fmt::Display for Arch {
Self::X86 => write!(f, "i686"),
Self::X86_64 => write!(f, "x86_64"),
Self::S390X => write!(f, "s390x"),
Self::Riscv64 => write!(f, "riscv64"),
}
}
}
Expand All @@ -115,7 +117,7 @@ impl Arch {
// manylinux 1
Self::X86 | Self::X86_64 => Some(5),
// unsupported
Self::Armv6L => None,
Self::Armv6L | Self::Riscv64 => None,
}
}
}
3 changes: 3 additions & 0 deletions crates/uv-python/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ impl From<&uv_platform_tags::Arch> for Arch {
target_lexicon::X86_32Architecture::I686,
)),
uv_platform_tags::Arch::X86_64 => Self(target_lexicon::Architecture::X86_64),
uv_platform_tags::Arch::Riscv64 => Self(target_lexicon::Architecture::Riscv64(
target_lexicon::Riscv64Architecture::Riscv64,
)),
}
}
}
Expand Down
Loading