Next: , Previous: , Up: Python Library   [Contents][Index]


7.1 Building the SEL Python Library

There are two pieces to the SEL Python Library; the LISP interface thru which the python library interacts with SEL and the python library itself.

To begin, we will start with the LISP interface. From the base of the SEL repository, the following is sufficient to build the interface and place it on your $PATH:

make bin/tree-sitter-interface
export PATH=$(pwd)/bin:$PATH

Now that we have built the LISP interface, we can build the python library. First, enter the python/ directory of this repository. From there, build and install the library as follows:

python3 setup.py bdist_wheel
pip3 install dist/*