Skip to content

Commit

Permalink
Allow installation of manylinux wheels on riscv64 (#8934)
Browse files Browse the repository at this point in the history
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

auditwheel is capable of generating riscv64 wheels for manylinux_2_31
and above. Here we modify uv-platform-tags so that those wheels can be
installed using uv.

Fixes: #8889

## Test Plan

- ran `cargo nextest run` locally on an x86 machine
- also ran `cargo nextest run` locally on a riscv64 VM but there were a
fair few failures (with and without this patch)
- built a riscv64 uv wheel, installed it on a riscv64 VM and checked
that I could use the newly built version of uv to install
manylinux_2_35_riscv64 wheels.
  • Loading branch information
markdryan authored Nov 8, 2024
1 parent 04c445a commit a11d27b
Showing 1 changed file with 3 additions and 1 deletion.
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 @@ -117,8 +117,10 @@ impl Arch {
}
// manylinux 1
Self::X86 | Self::X86_64 => Some(5),
// manylinux_2_31
Self::Riscv64 => Some(31),
// unsupported
Self::Armv6L | Self::Riscv64 => None,
Self::Armv6L => None,
}
}
}

0 comments on commit a11d27b

Please sign in to comment.