Skip to content

Fix missing tree_sitter/parser.h in Python sdist - #63

Open
vegaoqiang wants to merge 1 commit into
tree-sitter:masterfrom
vegaoqiang:fix-sdist
Open

Fix missing tree_sitter/parser.h in Python sdist#63
vegaoqiang wants to merge 1 commit into
tree-sitter:masterfrom
vegaoqiang:fix-sdist

Conversation

@vegaoqiang

Copy link
Copy Markdown

This fixes Python source builds failing due to a missing generated header file in the published sdist.

Currently, pip install --no-binary=:all: tree-sitter-json fails with:

text fatal error: tree_sitter/parser.h: No such file or directory 

The issue is that src/tree_sitter/parser.h is not included in the PyPI sdist.

This problem is mostly hidden on x86_64/aarch64 because prebuilt wheels are available, but it breaks installation on platforms without wheels such as ppc64le.

This PR adds a MANIFEST.in to ensure generated headers and source files are included in the sdist.

Fix missing parser.h in Python sdist
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.

1 participant