diff options
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/include/numpy/random/bitgen.h | 20 | ||||
-rw-r--r-- | numpy/core/setup.py | 2 |
2 files changed, 21 insertions, 1 deletions
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 <stddef.h> +#include <stdbool.h> +#include <stdint.h> + +/* 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')) |