Add ability to repair wheels for other architectures#512
Add ability to repair wheels for other architectures#512
Conversation
|
I think the arch shall be deduced from the input wheel. The information is already there, there should be no need to ask the user for input. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #512 +/- ##
==========================================
- Coverage 92.33% 91.43% -0.91%
==========================================
Files 20 20
Lines 1266 1272 +6
Branches 305 281 -24
==========================================
- Hits 1169 1163 -6
- Misses 56 63 +7
- Partials 41 46 +5 ☔ View full report in Codecov by Sentry. |
ff461c8 to
d0ea4fb
Compare
|
This was a much more difficult refactor with this requirement but it has been done. I tried to stay true to the original intent as much as possible but the wheel policies stuff was really, really insistent that it should be able to know exactly what platform it's running for at all times. In order to streamline a common use case ("please repair my wheel; I don't care what you repair it to but it doesn't necessarily have to be the highest-priority policy for the given platform"), I added the repair --best-plat flag. |
|
Thanks @rhelmot for the deep analysis and the work done on this. I've not forgotten about it. |
#244 represents a problem in need of a solution - how to audit wheels for other architectures, e.g. those built with a cross toolchain? Not all build environments can set up binfmt_misc or are performant enough to build in a VM.
Here is a proposed solution: manually specifying the architecture for the wheels to patch. I have verified that this is able to repair wheels built for aarch64 using a cross toolchain on an x86_64 machine.