You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
Rust has good TreeSitter library support and can statically link language bindings. Rust also has great Python binding support via PyO3, which is how we distribute our implementation of FLIRT to all supported platforms (windows/mac/linux * 32/64bits).
we could build a Python package implemented as a native library via Rust+PyO3 and distributed on PyPI that embeds the TreeSitter library and all bindings.
pro:
distribute whls via pypi for all supported platforms
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".
The text was updated successfully, but these errors were encountered: