Files
gf-core/src/runtime/python
2023-03-24 13:22:40 +01:00
..
2018-05-24 09:47:55 +02:00
2023-03-02 09:51:41 +01:00
2021-10-22 09:20:38 +02:00
2023-01-27 10:44:51 +01:00
2023-01-25 20:32:12 +01:00
2023-03-24 13:22:40 +01:00
2023-01-29 14:01:51 +01:00

Python bindings to C runtime

Compatibility

These bindings do not support Python 2. Python 3 is assumed in all these instructions.

Pre-requisites

  1. You must have installed the PGF C runtime (see ../c/README.md)
  2. You may need to set the environment variable LD_LIBRARY_PATH=/usr/local/lib
  3. 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