blob: 27b5c4e6760765de3806100d5b97d3b2d2d3f5c2 [file]
#include "ducc0/bindings/pybind_utils.h"
#include "ducc0/../../python/module_adders.h"
using namespace ducc0;
#ifdef DUCC0_USE_NANOBIND
NB_MODULE(PKGNAME, m)
#else
PYBIND11_MODULE(PKGNAME, m, py::mod_gil_not_used())
#endif
{
#define DUCC0_XSTRINGIFY(s) DUCC0_STRINGIFY(s)
#define DUCC0_STRINGIFY(s) #s
m.attr("__version__") = DUCC0_XSTRINGIFY(PKGVERSION);
#undef DUCC0_STRINGIFY
#undef DUCC0_XSTRINGIFY
#ifdef DUCC0_USE_NANOBIND
m.attr("__wrapper__") = "nanobind";
#else
m.attr("__wrapper__") = "pybind11";
#endif
add_fft(m);
add_sht(m);
add_totalconvolve(m);
add_wgridder(m);
add_healpix(m);
add_misc(m);
add_pointingprovider(m);
add_nufft(m);
}