bitarray-hardbyte: add build-bitarray-hardbyte.yml for riscv64 wheels - #1371
Merged
Conversation
bitarray-hardbyte is a one-off PyPI redistribution of ilanschnell/bitarray
under a different project name, last released as 2.3.8 in 2022 (the
hardbyte/bitarray fork that contributed the cibuildwheel workflow later
merged upstream is itself archived with a "Don't use this fork" commit).
There is no git tag matching 2.3.8 in ilanschnell/bitarray -- the version
was bumped in commit 0317aff5 ("next release 2.3.8") and never tagged,
going straight to 2.4.0 next. BITARRAY_HARDBYTE_REF pins the last commit
before that finalization (50b62ede), whose tree is byte-identical to the
released bitarray-hardbyte-2.3.8 sdist except for setup.py's distribution
name, which patches/bitarray-hardbyte/2.3.8 restores.
Builds a plain C extension with pypa/cibuildwheel, mirroring the existing
build-bitarray.yml sibling (same upstream source lineage, same interpreter
matrix). Verified locally: the patched source builds and its full test
suite (409 tests) passes against the local Python 3.9 interpreter.
luhenry
added a commit
that referenced
this pull request
Sep 7, 2026
cp313/cp314/cp314t failed identically: bitarray.test() calls test_bitarray.run(), which still uses unittest.makeSuite(), removed in Python 3.13. Not riscv64-specific -- reproduces on any arch running those interpreters. Upstream fixed this the same way in d345e9a3 once the file had moved past our pinned commit's line 4431; backport the one-line change instead of narrowing CIBW_TEST_COMMAND.
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.
bitarray-hardbyte2.3.8Compiles bitarray's plain C extension (
_bitarray,_util) for thebitarray-hardbytePyPI redistribution, which shares its import name and source with thebitarraypackage this repo already builds. Upstream publishes no riscv64 wheel.Mirrors upstream's
build_wheels.yml.Differs from upstream
bitarray-hardbyte2.3.8 was never tagged upstream (gotcha 103);BITARRAY_HARDBYTE_REFpins the last commit before the version moved to 2.4.0.namepatched tobitarray-hardbyte- matches the actual distribution name on PyPI.Testing
License: OK
Patches
0001-setup-rename-distribution-to-bitarray-hardbyte.patch- Inappropriate [downstream redistribution naming, irrelevant to ilanschnell/bitarray]. Without it the wheel's distribution name isbitarrayinstead ofbitarray-hardbyte. Reproduces on any arch, not riscv64-only.Built and tested locally against Python 3.9: 409 passed.