init from private repository

This commit is contained in:
Hans Dembinski
2016-04-06 09:23:37 -04:00
parent e7622c74a3
commit 19a740fa68
27 changed files with 3174 additions and 0 deletions

22
src/python/module.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include <boost/python/module.hpp>
#ifdef USE_NUMPY
# define PY_ARRAY_UNIQUE_SYMBOL boost_histogram_ARRAY_API
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
# include <numpy/arrayobject.h>
#endif
namespace boost {
namespace histogram {
void register_histogram_base();
void register_nhistogram();
}
}
BOOST_PYTHON_MODULE(histogram)
{
#ifdef USE_NUMPY
import_array();
#endif
boost::histogram::register_histogram_base();
boost::histogram::register_nhistogram();
}