这是indexloc提供的服务,不要输入任何密码
Skip to content

[Package]: 8 python-tree-sitter-x packages #26762

@NSPC911

Description

@NSPC911

Why is it worth to add this package?

if i try to install tree-sitter-json, tree-sitter-toml, tree-sitter-yaml, tree-sitter-html, tree-sitter-rust, tree-sitter-xml or tree-sitter-java from pypi, it just fails

(from https://discord.com/channels/641256914684084234/1423158072683008070)

Home page URL

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-tree-sitter

Source code URL

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-tree-sitter

Packaging policy acknowledgement

  • The project is actively developed.

  • The project has existing packages and is "well known".

  • Licensed under an open source license.

  • Not available through a language package manager: cargo, cpan, dotnet tool, gem, npm, pip, etc.

  • Not taking up too much disk space (< 100MiB per architecture, exceptions can be made)

  • Not duplicating the functionality of existing packages.

  • Not serving hacking, malware, phishing, spamming, spying, ddos functionality.

  • I certify that I have read Termux Packaging Policy and understand that my request will be denied if it is found lacking.

Additional information

nope, couldnt compile it

Entire log

(rovr) ~/rovr> uv pip install "tree-sitter-rust"
Resolved 1 package in 349ms
  × Failed to build `tree-sitter-rust==0.24.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      copying bindings/python/tree_sitter_rust/__init__.py ->
      build/lib.linux-aarch64-cpython-312/tree_sitter_rust
      running egg_info
      writing bindings/python/tree_sitter_rust.egg-info/PKG-INFO
      writing dependency_links to
      bindings/python/tree_sitter_rust.egg-info/dependency_links.txt
      writing requirements to
      bindings/python/tree_sitter_rust.egg-info/requires.txt
      writing top-level names to
      bindings/python/tree_sitter_rust.egg-info/top_level.txt
      reading manifest file
      'bindings/python/tree_sitter_rust.egg-info/SOURCES.txt'
      adding license file 'LICENSE'
      writing manifest file
      'bindings/python/tree_sitter_rust.egg-info/SOURCES.txt'
      copying bindings/python/tree_sitter_rust/__init__.pyi ->
      build/lib.linux-aarch64-cpython-312/tree_sitter_rust
      copying bindings/python/tree_sitter_rust/binding.c ->
      build/lib.linux-aarch64-cpython-312/tree_sitter_rust
      copying bindings/python/tree_sitter_rust/py.typed ->
      build/lib.linux-aarch64-cpython-312/tree_sitter_rust
      running build_ext
      building '_binding' extension
      aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare
      -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong
      -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000
      -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc
      -I/data/data/com.termux/files/home/.cache/uv/builds-v0/.tmpEkaL1E/include
      -I/data/data/com.termux/files/usr/include/python3.12
      -c bindings/python/tree_sitter_rust/binding.c -o
      build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_rust/binding.o
      -std=c11 -fvisibility=hidden
      aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare
      -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong
      -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000
      -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc
      -I/data/data/com.termux/files/home/.cache/uv/builds-v0/.tmpEkaL1E/include
      -I/data/data/com.termux/files/usr/include/python3.12 -c src/parser.c
      -o build/temp.linux-aarch64-cpython-312/src/parser.o -std=c11
      -fvisibility=hidden

      [stderr]
      /data/data/com.termux/files/home/.cache/uv/builds-v0/.tmpEkaL1E/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82:
      SetuptoolsDeprecationWarning: `project.license` as a TOML table is
      deprecated
      !!


      ********************************************************************************
              Please use a simple string containing a SPDX expression for
      `project.license`. You can also use `project.license-files`. (Both
      options available on setuptools>=77.0.0).

              By 2026-Feb-18, you need to update your project and remove
      deprecated calls
              or your builds will no longer be supported.

              See
      https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
      for details.

      ********************************************************************************

      !!
        corresp(dist, value, root_dir)
      /data/data/com.termux/files/home/.cache/uv/builds-v0/.tmpEkaL1E/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
      SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!


      ********************************************************************************
              Please consider removing the following classifiers in favor
      of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See
      https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
      for details.

      ********************************************************************************

      !!
        dist._finalize_license_expression()
      /data/data/com.termux/files/home/.cache/uv/builds-v0/.tmpEkaL1E/lib/python3.12/site-packages/setuptools/dist.py:759:
      SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!


      ********************************************************************************
              Please consider removing the following classifiers in favor
      of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See
      https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
      for details.

      ********************************************************************************

      !!
        self._finalize_license_expression()
      src/parser.c:3:10: fatal error: 'tree_sitter/parser.h' file not found
          3 | #include "tree_sitter/parser.h"
            |          ^~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      error: command
      '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang'
      failed with exit code 1

      hint: This error likely indicates that you need to install a library
      that provides "tree_sitter/parser.h" for `tree-sitter-rust@0.24.0`

Metadata

Metadata

Assignees

No one assigned

    Labels

    package requestA new package was requestedpythonIssue is about Python related stuff, including pip

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions