Package Details: python-tree-sitter 0.22.3-1

Git Clone URL: https://aur.archlinux.org/python-tree-sitter.git (read-only, click to copy)
Package Base: python-tree-sitter
Description: Python bindings to the tree-sitter parsing library
Upstream URL: https://github.com/tree-sitter/py-tree-sitter
Licenses: MIT
Submitter: notEvil
Maintainer: notEvil
Last Packager: notEvil
Votes: 3
Popularity: 0.174383
First Submitted: 2023-06-25 21:56 (UTC)
Last Updated: 2024-05-19 07:46 (UTC)

Latest Comments

bcb commented on 2024-05-17 11:34 (UTC)

Please add python-setuptools as a make dependency, otherwise the following error occurs:

==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta' is not available.

Spixmaster commented on 2024-05-16 19:51 (UTC)

A dependency is missing.

ERROR Missing dependencies:
    wheel

MarsSeed commented on 2023-12-21 13:36 (UTC)

Thank you.

Please kindly see Arch package guidelines#Architectures:

The arch array should contain 'x86_64' if the compiled package is architecture-specific.

The installable Pacman tarball (currently created with the name python-tree-sitter-0.20.4-1-any.pkg.tar.zst) contains a binary ELF executable SO file, which is only compatible with the specific architecture it was compiled for.

notEvil commented on 2023-12-21 13:02 (UTC)

Will do. Regarding arch, https://github.com/tree-sitter/py-tree-sitter/blob/master/setup.py states any and the C-extension should build on almost any arch afaik.

MarsSeed commented on 2023-12-21 12:38 (UTC)

Please kindly declare binary architecture(s) in arch=() array; at least 'x86_64'. As this is not an 'any' arch package.

Also please make sure to install the custom license file, and add depends=glibc in line with Arch package guidelines (cf. Licenses, Package dependencies paragraphs).

See namcap analysis report:

$ namcap python-tree-sitter-0.20.4-1-any.pkg.tar.zst

ERROR: ELF file ('usr/lib/python3.11/site-packages/tree_sitter/binding.cpython-311-x86_64-linux-gnu.so')
    found in an 'any' package.
ERROR: Missing custom license directory (usr/share/licenses/python-tree-sitter)
WARNING: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/libc.so.6'] needed in files 
    ['usr/lib/python3.11/site-packages/tree_sitter/binding.cpython-311-x86_64-linux-gnu.so'])

Thank you for maintaining this package!

notEvil commented on 2023-06-25 22:41 (UTC)

Thanks, I will add 'python' as dependency. Regarding tree-sitter: the package is not strictly required since tree-sitter is a parser generator. It depends on packages like tree-sitter-c, but it would be difficult to enumerate all as optional dependency, see https://aur.archlinux.org/packages?O=0&SeB=nd&K=tree-sitter-&outdated=&SB=p&SO=d&PP=50&submit=Go

MarsSeed commented on 2023-06-25 22:28 (UTC)

And as far as I understand, it also needs tree-sitter in depends, since it is a Python bindings library to the former.

MarsSeed commented on 2023-06-25 22:26 (UTC)

Please add the required runtime `depends=('python') to PKGBUILD.