Skip to content

zstd: add build-zstd.yml for riscv64 wheels - #880

Merged
luhenry merged 1 commit into
mainfrom
zstd
Sep 4, 2026
Merged

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

Conversation

@luhenry

@luhenry luhenry commented Sep 3, 2026

Copy link
Copy Markdown
Member

Compiles the bundled libzstd 1.5.7 C sources into a zstd extension module (not to be confused with the separately-ported zstandard package). Upstream publishes no riscv64 wheel.

Mirrors upstream's default build (no --external/--legacy/--libzstd-use-asm), narrowed from its per-interpreter debootstrap-chroot CI down to cibuildwheel on riscv64.

Differs from upstream

  • Tests run via pytest instead of setup.py test (removed in modern setuptools) - same suite, unchanged
  • test_speed.py is skipped - a 30-second throughput benchmark with no assertions

Testing

  • upstream's unittest suite, run with pytest

License: wheel bundles the zstd C library (BSD); upstream ships its own LICENSE but not zstd's, so the patch adds it.

Patches

  • 0001-package-the-vendored-Zstandard-licence-with-the-wheels.patch - To upstream [not yet submitted]. Without it the wheel redistributes zstd's bundled C sources with no copyright notice. Reproduces off riscv64.

Built on cp312; 32 passed, 0 skipped.

Builds the zstd Python wrapper (Sergey Dryabzhinsky's python-zstd,
not to be confused with python-zstandard) against its bundled libzstd
1.5.7 sources with cibuildwheel, and adds the vendored library's own
licence next to the wrapper's.
@luhenry
luhenry merged commit 279e0c0 into main Sep 4, 2026
9 checks passed
@luhenry
luhenry deleted the zstd branch September 4, 2026 06:02
@luhenry luhenry mentioned this pull request Sep 4, 2026
@luhenry luhenry linked an issue Sep 4, 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.

zstd riscv64 support

1 participant