Fix compilation errors of Python bindings on macOS

This commit is contained in:
John J. Camilleri
2021-10-18 08:27:19 +02:00
parent c9b668a583
commit 61e95bcfeb
4 changed files with 18 additions and 21 deletions

View File

@@ -1,5 +1,9 @@
# 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`)
@@ -26,10 +30,3 @@ pytest
```
Requires: `pip install pytest`
## Debugging
valgrind --leak-check=full --show-leak-kinds=all pytest 2> valgrind.txt
valgrind --leak-check=full --show-leak-kinds=all -- python -c 'import pgf; s = pgf.readType("A -> B"); print(s)' 2> valgrind.txt