Conversation
Vendors libgpiod's C library sources via LIBGPIOD_VERSION (upstream's own setup.py fetch_tarball mechanism), so no system libgpiod is needed. The real test suite needs a gpio-sim kernel module and a separately-built libgpiosim helper library, neither available in the build container, so CI exercises the compiled extension and the real chip-open error path instead, matching upstream's own release process which does not run tests either.
Alpine needs linux-headers for lib/uapi/gpio.h's system linux/*.h includes; manylinux already has them via glibc-devel.
luhenry
added a commit
that referenced
this pull request
Sep 7, 2026
Without it cibuildwheel defaulted to aarch64/x86_64 and matched zero build identifiers against the cp*-*linux_riscv64 CIBW_BUILD selector.
Building wheels directly from a checkout meant setup.py's fetch_tarball decorator took the full-fetch path during build_ext, which deletes LICENSE/ lib/include right after compiling -- breaking install_egg_info's license copy. Upstream's own generate_pypi_artifacts.sh sidesteps this by building the sdist with LIBGPIOD_VERSION set first, then feeding that sdist (already carrying libgpiod-version.txt) to cibuildwheel, which takes the skip-fetch, no-cleanup path instead.
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.
gpiod2.5.0Python bindings for libgpiod, compiling its C library sources into
gpiod._ext. Upstream publishes no riscv64 wheel.Mirrors upstream's
generate_pypi_artifacts.sh, which drives cibuildwheel over a checkout with no separate test step.Differs from upstream
git.kernel.orgdirectly - thepython-v*tags aren't mirrored togithub.com/brgl/libgpiod.Testing
License: Vendors libgpiod's LGPL-2.1-or-later C sources and a GPL-2.0-only-with-syscall-note kernel UAPI header.
Not rehearsed locally -
lib/uapi/gpio.hneeds the real Linuxlinux/*.hheaders; validating directly on the riscv64 CI runners.