Conversation
pyvips-binary bundles a libvips shared library downloaded from a kleisauke/libvips-packaging release, which publishes no linux-riscv64 tarball. Build that tarball first with libvips-packaging's own build.sh and posix.sh, patched to add a native linux-riscv64 platform, then feed it to pyvips-binary's unchanged cibuildwheel before-build.
luhenry
added a commit
that referenced
this pull request
Sep 26, 2026
Contributor
|
zlib-ng 2.3.3 defines RISCV_FEATURES only inside its WITH_RVV branch, so with RVV off and the Zbc CRC32 kernel still detected, functable.c fails on `cf.riscv.has_zbc` (zlib-ng/zlib-ng@9f396c3 fixes it after the release). Turn WITH_RISCV_ZBC off too in patch 0002, keeping zlib-ng on the rv64gc scalar paths the patch already intends.
This branch has not been deployed
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.
pyvips-binary8.18.6Compiles libvips and its full dependency stack from source with libvips-packaging's
build.sh, then the cffi_libvipsabi3 extension against it. Upstream publishes no riscv64 wheel, and libvips-packaging no riscv64 tarball.Mirrors pyvips-binary's
ci.ymland libvips-packaging'sci.yml.Differs from upstream
Matrix: cp314 only, as upstream - one abi3 wheel serves every interpreter.
Testing
License: The bundled libvips statically links LGPL (libvips, GLib, Pango, librsvg, libheif, libexif, FriBidi) and permissive libraries; upstream ships none of their licence texts, so the build adds them and publishes their sources.
Patches
0001(libvips-packaging) - To upstream. Adds the linux-riscv64 platform; riscv64-only.0002(libvips-packaging) - Inappropriate. Drops zlib-ng/libaom/pixman RVV kernels, which SIGILL on our runners, and zlib-ng's Zbc CRC32, which zlib-ng 2.3.3 cannot build without RVV; riscv64-only.0003(pyvips-binary) - To upstream.download-vips.pyrejects riscv64; riscv64-only.0004(pyvips-binary) - Inappropriate. Unpacks the locally built tarball instead of downloading.