Skip to content

tree-sitter-c: add build-tree-sitter-c.yml for riscv64 wheels - #661

Merged
luhenry merged 1 commit into
mainfrom
tree-sitter-c
Aug 28, 2026
Merged

tree-sitter-c: add build-tree-sitter-c.yml for riscv64 wheels#661
luhenry merged 1 commit into
mainfrom
tree-sitter-c

Conversation

@luhenry

@luhenry luhenry commented Aug 27, 2026

Copy link
Copy Markdown
Member

Compiles the generated C grammar parser and its CPython binding into a cp310-abi3 extension. Upstream publishes no riscv64 wheel.

Mirrors upstream's shared package-pypi.yml, in the same shape as build-tree-sitter-bash.yml and build-tree-sitter-javascript.yml.

Differs from upstream

  • riscv64 manylinux image, and no musllinux — tree-sitter ships no musl riscv64 wheel.
  • Runs the bundled binding test; upstream's wheel job runs no tests.

Matrix: one cp310-abi3 wheel, built on cp312 and re-tested on cp313/cp314. Upstream builds cp310-* only and publishes no free-threaded wheel.

Testing

  • runs bindings/python/tests, which upstream's wheel job skips

License: OK

Patches

  • 0001-tests-qualify-Parser-and-Language-with-the-tree_sitt.patch — To upstream, not yet submitted. The bundled test calls bare Parser/Language, so it always fails with NameError. Reproduces on x86.

Built on cp312; 1 passed.

Mirrors tree-sitter's shared package-pypi.yml wheel job, narrowed to
manylinux riscv64, in the same shape as build-tree-sitter-bash.yml and
build-tree-sitter-javascript.yml.

The generated parser sources are committed at the tag and byte-identical
to the released sdist, so no code generation is needed. setup.py tags the
wheel cp310-abi3, so one build covers every non-free-threaded CPython.

musllinux is dropped: tree-sitter, the `core` extra the test needs,
publishes no musllinux riscv64 wheel.

The bundled test is patched because it calls undefined bare names; it
fails identically on x86_64.
@luhenry
luhenry merged commit 3c5d8b6 into main Aug 28, 2026
5 checks passed
@luhenry
luhenry deleted the tree-sitter-c branch August 28, 2026 05:25
@luhenry luhenry linked an issue Aug 28, 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.

tree-sitter-c riscv64 support

1 participant