cleanup of build, prepare for coverage

This commit is contained in:
Hans Dembinski
2016-05-07 00:31:25 -04:00
parent 6dda03f8a3
commit 6b30e2c116
3 changed files with 69 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
#include <boost/python/module.hpp>
#ifdef USE_NUMPY
#ifdef HAVE_NUMPY
# define PY_ARRAY_UNIQUE_SYMBOL boost_histogram_ARRAY_API
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
# include <numpy/arrayobject.h>
@@ -15,7 +15,7 @@ namespace histogram {
BOOST_PYTHON_MODULE(histogram)
{
#ifdef USE_NUMPY
#ifdef HAVE_NUMPY
import_array();
#endif
boost::histogram::register_axis_types();