Skip to content

how to bundle TreeSitter bindings #1092

@williballenthin

Description

@williballenthin

Originally posted by @williballenthin in #1080 (comment)

ideally, we want to be able to install capa simply by doing pip install flare-capa and/or fetching the standalone executable from github (generated via pyinstaller). this means our dependencies should live within the python ecosystem.

there is a supported TreeSitter library for Python; however, it doesn't include the bindings for each language we parse with TreeSitter. these bindings must be compiled into shared objects and distributed for use with the TreeSitter library.

we need to figure out how to distribute the shared object code with capa so that it "just works".

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedtree-sitterrelated to tree-sitter feature extraction

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions