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".
Originally posted by @williballenthin in #1080 (comment)
ideally, we want to be able to install capa simply by doing
pip install flare-capaand/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".