mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 13:09:33 -06:00
Python bindings to C runtime
Compatibility
These bindings do not support Python 2. Python 3 is assumed in all these instructions.
Pre-requisites
- You must have installed the PGF C runtime (see
../c/README.md) - You may need to set the environment variable
LD_LIBRARY_PATH=/usr/local/lib - You will need the system Python development package, e.g.:
- RedHat:
yum install python-devel - Debian:
apt install python-dev
Installation
python setup.py build
sudo python setup.py install
Usage
See: https://www.grammaticalframework.org/doc/runtime-api.html#python
Running tests
pytest
Requires: pip install pytest