tree-sitter / py-tree-sitter

Python bindings to the Tree-sitter parsing library
https://tree-sitter.github.io/py-tree-sitter/
MIT License
817 stars 96 forks source link

Can't pip install tree-sitter-python on mac os with apple silicon #229

Closed crayola closed 4 months ago

crayola commented 4 months ago

Or am I doing something wrong?

pip install tree-sitter-python -vvv
Using pip 24.0 from /Users/tim/komment/utilities/ast_check/.venv/lib/python3.12/site-packages/pip (python 3.12)
Non-user install because user site-packages disabled
Created temporary directory: /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-build-tracker-i6k_oho4
Initialized build tracking at /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-build-tracker-i6k_oho4
Created build tracker: /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-build-tracker-i6k_oho4
Entered build tracker: /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-build-tracker-i6k_oho4
Created temporary directory: /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-install-qj33x1as
Created temporary directory: /private/var/folders/20/_b3bvsnd18jfnxvjt781c3n80000gn/T/pip-ephem-wheel-cache-qg_o9cek
1 location(s) to search for versions of tree-sitter-python:
* https://pypi.org/simple/tree-sitter-python/
Fetching project page and analyzing links: https://pypi.org/simple/tree-sitter-python/
Getting page https://pypi.org/simple/tree-sitter-python/
Found index url https://pypi.org/simple/
Looking up "https://pypi.org/simple/tree-sitter-python/" in the cache
Request header has "max_age" as 0, cache bypassed

It's a bit concerning because there is a warning that building from source is on the verge of being deprecated (warning in README.md). Should I do something differently?

ObserverOfTime commented 4 months ago

See https://github.com/tree-sitter/tree-sitter-python/issues/262