diff options
author | Jon Nordby <jononor@gmail.com> | 2025-04-27 21:38:29 +0200 |
---|---|---|
committer | Jon Nordby <jononor@gmail.com> | 2025-05-02 21:00:12 +0200 |
commit | be9f6b6e8e39a711dcfa7806f894b8ec3ff49ca9 (patch) | |
tree | 9b8a0c16ac47a7084b52bdf458f5d5a683b001c0 /bindings/setup.py | |
parent | 594bdb32b9d0648ab4718b3672f54008c46ee3a6 (diff) |
bindings: Example of using pybind11 with numpy
Diffstat (limited to 'bindings/setup.py')
-rw-r--r-- | bindings/setup.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bindings/setup.py b/bindings/setup.py new file mode 100644 index 0000000..487949a --- /dev/null +++ b/bindings/setup.py @@ -0,0 +1,22 @@ +from setuptools import setup, Extension +import pybind11 +import numpy + +ext_modules = [ + Extension( + 'galearn_pdm', + ['galearn_pdm.cpp'], + include_dirs=[ + pybind11.get_include(), + numpy.get_include(), + ], + language='c++', + ), +] + +setup( + name='galearn', + version='0.0.1', + ext_modules=ext_modules, + zip_safe=False, +) |