From 14c333972d64fce85d06d74bc673045f32da7b5f Mon Sep 17 00:00:00 2001 From: mattip Date: Thu, 27 Jun 2019 16:17:09 -0700 Subject: MAINT: move location of bitgen.h --- numpy/core/include/numpy/random/bitgen.h | 20 ++++++++++++++++++++ numpy/core/setup.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 numpy/core/include/numpy/random/bitgen.h (limited to 'numpy/core') diff --git a/numpy/core/include/numpy/random/bitgen.h b/numpy/core/include/numpy/random/bitgen.h new file mode 100644 index 000000000..0adaaf2ee --- /dev/null +++ b/numpy/core/include/numpy/random/bitgen.h @@ -0,0 +1,20 @@ +#ifndef _RANDOM_BITGEN_H +#define _RANDOM_BITGEN_H + +#pragma once +#include +#include +#include + +/* Must match the declaration in numpy/random/common.pxd */ + +typedef struct bitgen { + void *state; + uint64_t (*next_uint64)(void *st); + uint32_t (*next_uint32)(void *st); + double (*next_double)(void *st); + uint64_t (*next_raw)(void *st); +} bitgen_t; + + +#endif diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 1a9c8410c..338502791 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -610,7 +610,7 @@ def configuration(parent_package='',top_path=None): config.add_include_dirs(join(local_dir, "src")) config.add_include_dirs(join(local_dir)) - config.add_data_files('include/numpy/*.h') + config.add_data_dir('include/numpy') config.add_include_dirs(join('src', 'npymath')) config.add_include_dirs(join('src', 'multiarray')) config.add_include_dirs(join('src', 'umath')) -- cgit v1.2.1