Conversation
The 3.3.0 patch (patches/cython/3.3.0/) does not apply to 3.2.9: its aarch64 override context includes an inherit.environment = "append" line that 3.2.9's pyproject.toml does not have. Add a version-specific patch carrying the same riscv64 CFLAGS override, matching 3.2.9's own override style.
luhenry
added a commit
that referenced
this pull request
Sep 10, 2026
luhenry
added a commit
that referenced
this pull request
Sep 10, 2026
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.
cython3.2.9Compiles the Cython compiler's C extensions. Upstream publishes no riscv64 wheel for 3.2.9 (riscv64 wheels for the newer 3.3.0 already ship via #330's
build-cython.yml, which this PR reuses unchanged).Mirrors upstream's
wheels.yml, same asbuild-cython.ymlalready does for 3.3.0.Differs from upstream
CFLAGSoverride inpyproject.toml- x86 defaults don't cross-compile for riscv64Testing
License: OK
Patches
0001-Add-riscv64-cibuildwheel-environment-override.patch- Backport [https://github.com/cython/cython/commit/353d241c339f14e9bddf81d64a485859e57964b1]. Without it, the riscv64 build inherits x86-march=core2CFLAGSand fails at compile. 3.2.9-specific: the 3.3.0 patch's context (inherit.environment = "append") doesn't exist in 3.2.9'spyproject.toml.Trigger: cython:3.2.9