summaryrefslogtreecommitdiff
path: root/bindings/README.md
blob: 716c6719266b1920f36a991277da07572057a77f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

# Python module

## Prerequisites

The following packages are needed.
Install with pip or via OS package manager.

    pybind11
    numpy
    setuptools
    soundfile
    matplotlib

Debian:
    apt install python3-pybind11 python3-numpy python3-setuptools python3-soundfile python3-matplotlib

## Building

To build the module

    python setup.py build_ext --inplace

This will produce a shared library (`.so` on Linux) in PWD, that Python can load.

## Test

To use the module, see the .py file

    python test_galearn_pdm.py