You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple example of how to use [pybind11](https://github.com/pybind/pybind11) with [numpy](https://numpy.org/).
12
+
A simple example of how to use [pybind11](https://github.com/pybind/pybind11) with [numpy](https://numpy.org/) and publish this as a library on [PyPI](https://pypi.org/project/pybind11-numpy-example/) and [conda-forge](https://anaconda.org/conda-forge/pybind11-numpy-example).
12
13
13
14
This C++/Python library creates a `std::vector` of 16-bit ints,
14
15
and provides a Python interface to the contents of this vector in a few different ways:
@@ -37,6 +38,8 @@ and uses [scikit-build-core](https://github.com/scikit-build/scikit-build-core).
37
38
Each tagged commit triggers a [GitHub action job](https://github.com/ssciwr/pybind11-numpy-example/actions/workflows/pypi.yml)
38
39
which uses [cibuildwheel](https://cibuildwheel.readthedocs.io/) to build and upload wheels to [PyPI](https://pypi.org/project/pybind11-numpy-example/).
39
40
41
+
The [conda-forge package](https://anaconda.org/conda-forge/pybind11-numpy-example) is generated from [this recipe](https://github.com/conda-forge/pybind11-numpy-example-feedstock/blob/main/recipe/meta.yaml).
42
+
40
43
The scripts used to generate the above plots are in [scripts](https://github.com/ssciwr/pybind11-numpy-example/tree/main/scripts).
41
44
42
45
This repo was quickly set up using the SSC [C++ Project Cookiecutter](https://github.com/ssciwr/cookiecutter-cpp-project).
0 commit comments