Skip to content

selectolax: add build-selectolax.yml for riscv64 wheels - #926

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

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

Conversation

@luhenry

@luhenry luhenry commented Sep 4, 2026

Copy link
Copy Markdown
Member

Compiles the Cython-wrapped modest and lexbor HTML5 engines from vendored source. Upstream publishes no riscv64 wheel.

Mirrors upstream's make_release.yml.

Differs from upstream

  • Both manylinux and musllinux riscv64 attempted - no runtime deps to block musllinux.

Testing

  • same as upstream (pythonpackage.yml's pytest suite), staged via CIBW_TEST_SOURCES to avoid the checkout's selectolax/ package shadowing the wheel

License: Wheel bundles modest (LGPL-2.1) and lexbor (Apache-2.0) source; upstream ships no licence text for them, so the build adds it.

Patches

  • 0001-package-the-licences-of-the-embedded-modest-and-lexb.patch - To upstream. Wheel would ship only selectolax's own MIT LICENSE without it; reproduces off riscv64.

Built on cp313 (macOS); 315 passed, 0 skipped.

Build-from-checkout shape mirroring upstream's own make_release.yml
(pypa/cibuildwheel on the checked-out repo with submodules). selectolax
statically compiles the vendored modest (LGPL-2.1) and lexbor (Apache-2.0)
engines; the published PyPI wheel ships only selectolax's own MIT LICENSE,
so a patch adds LICENSE.modest, LICENSE.lexbor and NOTICE.lexbor at the
project root, picked up automatically by setuptools' default license_files
glob. Tests mirror upstream's pythonpackage.yml pytest suite, staged via
CIBW_TEST_SOURCES to avoid the checkout's selectolax/ package shadowing
the installed wheel (gotcha 25). Both manylinux and musllinux riscv64
images are attempted since selectolax has no external runtime deps.
@luhenry
luhenry merged commit 3f8e61a into main Sep 4, 2026
13 checks passed
@luhenry
luhenry deleted the selectolax branch September 4, 2026 11:41
@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.

selectolax riscv64 support

1 participant