diff options
author | mattip <matti.picus@gmail.com> | 2019-06-27 16:17:09 -0700 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-06-27 16:27:47 -0700 |
commit | 14c333972d64fce85d06d74bc673045f32da7b5f (patch) | |
tree | c2580325e9f3474edfb4a6196d37b98f7af9e7e9 /numpy/core | |
parent | 4178b5a731cd183563d53ed145e7dce278aa39f6 (diff) | |
download | numpy-14c333972d64fce85d06d74bc673045f32da7b5f.tar.gz |
MAINT: move location of bitgen.h
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')) |