Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get tree-sitter-languages working on Python 3.13 #4

Closed
claui opened this issue Mar 4, 2025 · 1 comment
Closed

Get tree-sitter-languages working on Python 3.13 #4

claui opened this issue Mar 4, 2025 · 1 comment

Comments

@claui
Copy link
Owner

claui commented Mar 4, 2025

Background

The tree-sitter-languages library is now unmaintained, and experimental support for TSL Pack in Aider is making good progress.

Regardless, it can be helpful to get tree-sitter-languages working on Python 3.13, even though it's on its way out. The thing is that Aider can then gain Python 3.13 support without having to wait for TSL Pack support to stabilize.

Proof of concept

pip install Cython setuptools tree-sitter==0.21.3 wheel
curl -L -o tree-sitter-languages-1.10.2.tar.gz https://github.com/grantjenks/py-tree-sitter-languages/archive/refs/tags/v1.10.2.tar.gz
tar -x -f tree-sitter-languages-1.10.2.tar.gz
cd py-tree-sitter-languages-1.10.2
python build.py
cd ..
pip install py-tree-sitter-languages-1.10.2
python -c 'from tree_sitter_languages import get_language; get_language("python")'

See also

@claui
Copy link
Owner Author

claui commented Mar 9, 2025

No longer needed, because TSL Pack support has now landed in grep-ast and in Aider.

@claui claui closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2025
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

No branches or pull requests

1 participant