fix(bindings/python): support foyer wheels on armv7#7685
Open
suyanhanx wants to merge 1 commit into
Open
Conversation
Xuanwo
requested changes
Jun 5, 2026
Member
There was a problem hiding this comment.
I don't think this fix is correct.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #7619.
Rationale for this change
Python release wheels currently build with
services-all.foyerwas removedfrom that feature set in #7618 as a release mitigation because the armv7 wheel
jobs pulled in
io-uring v0.7.12, whose prebuilt bindings intentionally rejectunsupported target architectures.
This PR implements the follow-up path that keeps
foyeravailable in Pythonrelease wheels without bypassing
io-uring's native binding compatibilitycheck. Instead of using
--cfg=io_uring_skip_arch_check, Python arm targetsenable
io-uring'sbindgenfeature and generate target bindings during thewheel build.
The manylinux and musllinux armv7 containers do not consistently provide kernel
UAPI headers new enough for
io-uring v0.7.12, so the Python binding provides asmall local UAPI include file for bindgen. This keeps the generated bindings
stable across release runners while avoiding a vendored or patched
io-uringcrate.
What changes are included in this PR?
services-foyerback to Pythonservices-all.io-uring'sbindgenfeature only for Pythontarget_arch = "arm"builds.BUILD_IO_URING_INCLUDE_FILEconfig and Linux UAPI header forio-uringbindgen.Scheme.Foyerand theOperator/AsyncOperatoroverloads are present again.Are there any user-facing changes?
Yes. Python release wheels built with
services-allinclude thefoyerserviceagain, including armv7 wheels.
AI Usage Statement
I used OpenAI GPT-5 Codex in Codex to help implement, test, and validate this PR.