summaryrefslogtreecommitdiff
path: root/bindings/README.md
diff options
context:
space:
mode:
authorJon Nordby <jononor@gmail.com>2025-04-27 21:38:29 +0200
committerJon Nordby <jononor@gmail.com>2025-05-02 21:00:12 +0200
commitbe9f6b6e8e39a711dcfa7806f894b8ec3ff49ca9 (patch)
tree9b8a0c16ac47a7084b52bdf458f5d5a683b001c0 /bindings/README.md
parent594bdb32b9d0648ab4718b3672f54008c46ee3a6 (diff)
bindings: Example of using pybind11 with numpy
Diffstat (limited to 'bindings/README.md')
-rw-r--r--bindings/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/bindings/README.md b/bindings/README.md
new file mode 100644
index 0000000..dee8dfc
--- /dev/null
+++ b/bindings/README.md
@@ -0,0 +1,28 @@
+
+# Python module
+
+## Prerequisites
+
+The following packages are needed.
+Install with pip or via OS package manager.
+
+ pybind11
+ numpy
+ setuptools
+
+
+## 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
+
+