Skip to content

simplejpeg: add build-simplejpeg.yml for riscv64 wheels - #1446

Merged
luhenry merged 1 commit into
mainfrom
simplejpeg
Sep 8, 2026
Merged

simplejpeg: add build-simplejpeg.yml for riscv64 wheels#1446
luhenry merged 1 commit into
mainfrom
simplejpeg

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Cython binding around a vendored, statically-linked libjpeg-turbo for fast JPEG encode/decode. Upstream publishes no riscv64 wheel.

Mirrors upstream's build_wheels.yml.

Differs from upstream

  • Patches setup.py to drop REQUIRE_SIMD on riscv64 - libjpeg-turbo ships no riscv64 SIMD kernels, so the forced flag turns the graceful fallback into a hard cmake failure.
  • Skips upstream's nasm before-all - only needed to assemble the x86 SIMD kernels this port disables.

Testing

  • same as upstream

License: Statically links libjpeg-turbo (IJG/BSD-3-Clause-ish, via its own LICENSE.md); upstream's setup.py fetches the source but ships no licence text for it, so the build adds one.

Patches

  • 0001-setup.py-dont-require-SIMD-on-riscv64.patch - Inappropriate. Without it, cmake configure hard-fails on riscv64; reproduces on riscv64 only.

Built on cp312/cp313/cp314; CI pending.

Mirrors upstream's cibuildwheel-driven wheel build, narrowed to Linux riscv64.
Patches setup.py to stop forcing REQUIRE_SIMD when building the vendored
libjpeg-turbo, since libjpeg-turbo ships no riscv64 SIMD kernels and the
option's own default already falls back to a portable build.
luhenry added a commit that referenced this pull request Sep 7, 2026
@luhenry
luhenry merged commit 3a9d353 into main Sep 8, 2026
8 checks passed
@luhenry
luhenry deleted the simplejpeg branch September 8, 2026 08:35
@luhenry luhenry linked an issue Sep 8, 2026 that may be closed by this pull request
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.

simplejpeg riscv64 support

1 participant