libusb-package: add build-libusb-package.yml for riscv64 wheels - #1870
Open
luhenry wants to merge 2 commits into
Open
libusb-package: add build-libusb-package.yml for riscv64 wheels#1870luhenry wants to merge 2 commits into
luhenry wants to merge 2 commits into
Conversation
Ships riscv64 wheels for libusb-package by building the vendored libusb-1.0 shared library from the src/libusb submodule via upstream's own setup.py build_ext (autoreconf + configure + make), the same recipe upstream's own cibuildwheel-based CI uses for every other platform. Also ships libusb's own LGPL-2.1 COPYING alongside the package's Apache-2.0 LICENSE: every libusb-package wheel on PyPI is missing it, since setup.cfg's license_file names only the wrapper's own notice.
luhenry
added a commit
that referenced
this pull request
Sep 12, 2026
The folded YAML scalar joined the opening quote and the next line with a space, so python -c received a leading space before its first statement and failed with IndentationError (both cp312 legs). Also, the publish artifact-pattern used '-*-riscv64', which never matches the manylinux/ musllinux legs' '_riscv64' suffix; use tsv2py's '-*riscv64' convention for a mixed-libc matrix instead.
luhenry
added a commit
that referenced
this pull request
Sep 13, 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.
libusb-package1.0.30.0Builds libusb 1.0 from the vendored
src/libusbsubmodule and bundles the resulting shared library in the wheel, same as upstream does for every other platform. Upstream publishes no riscv64 wheel.Mirrors upstream's
build-wheels.yml.Differs from upstream
cp312build per libc, not a matrix - the wheel is taggedpy3-none-<plat>regardless of interpreter.Matrix:
cp312only (manylinux + musllinux) - one interpreter is enough since the wheel is taggedpy3-none.Testing
.soloads and the licence files ship - upstream's CI builds wheels but does not test them.License: Wheel bundles libusb (LGPL-2.1); upstream ships no licence text for it, so the build adds it.
Patches
0001-ship-libusb-s-lgpl-licence-alongside-the-package-s-.patch- To upstream [not yet submitted]. Without it the wheel ships no LGPL licence text. Reproduces on every platform, not riscv64-only.Built on cp312 (manylinux + musllinux); smoke test passed on both.