#include <arbor/version.hpp> #include <pybind11/pybind11.h> // Forward declarations of functions used to register API // types and functions to be exposed to Python. namespace pyarb { void register_config(pybind11::module& m); void register_contexts(pybind11::module& m); #ifdef ARB_MPI_ENABLED void register_mpi(pybind11::module& m); #endif } PYBIND11_MODULE(arbor, m) { m.doc() = "arbor: Python bindings for Arbor."; m.attr("__version__") = ARB_VERSION; pyarb::register_config(m); pyarb::register_contexts(m); #ifdef ARB_MPI_ENABLED pyarb::register_mpi(m); #endif }