Utilities for writing C++ extension modules for CPython.
libpy supports:
- macOS/Linux
- Python >=3.5
libpy requires:
- gcc>=8 or clang>=10
- numpy>=1.11.3
libpy also depends on:
- pcre
- google sparsehash
To install these dependencies:
$ sudo apt install libpcre2-dev libsparsehash-dev
$ brew install pcre2 google-sparsehash
To install for development:
$ make
Otherwise, pip install libpy
, making sure CC
and CXX
environment variables are set to the the right compiler.
To run the unit tests, invoke:
$ make test