Skip to content

cython: build 3.2.9 wheels for riscv64 - #1695

Merged
luhenry merged 1 commit into
mainfrom
cython
Sep 11, 2026
Merged

cython: build 3.2.9 wheels for riscv64#1695
luhenry merged 1 commit into
mainfrom
cython

Conversation

@luhenry

@luhenry luhenry commented Sep 10, 2026

Copy link
Copy Markdown
Member

Compiles 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 as build-cython.yml already does for 3.3.0.

Differs from upstream

  • riscv64 CFLAGS override in pyproject.toml - x86 defaults don't cross-compile for riscv64

Testing

  • same as upstream

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=core2 CFLAGS and fails at compile. 3.2.9-specific: the 3.3.0 patch's context (inherit.environment = "append") doesn't exist in 3.2.9's pyproject.toml.

Trigger: cython:3.2.9

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 luhenry linked an issue Sep 10, 2026 that may be closed by this pull request
luhenry added a commit that referenced this pull request Sep 10, 2026
@luhenry
luhenry merged commit a9484fe into main Sep 11, 2026
12 of 13 checks passed
@luhenry
luhenry deleted the cython branch September 11, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cython 3.2.9 riscv64 support

1 participant