1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
installed_headers = [
'numpy/_neighborhood_iterator_imp.h',
'numpy/arrayobject.h',
'numpy/arrayscalars.h',
'numpy/_dtype_api.h',
'numpy/experimental_dtype_api.h',
'numpy/halffloat.h',
'numpy/ndarrayobject.h',
'numpy/ndarraytypes.h',
'numpy/noprefix.h',
'numpy/npy_1_7_deprecated_api.h',
'numpy/npy_3kcompat.h',
'numpy/npy_common.h',
'numpy/npy_cpu.h',
'numpy/npy_endian.h',
'numpy/npy_interrupt.h',
'numpy/npy_math.h',
'numpy/npy_no_deprecated_api.h',
'numpy/npy_os.h',
'numpy/numpyconfig.h',
'numpy/old_defines.h',
'numpy/ufuncobject.h',
'numpy/utils.h',
]
# Note that oldnumeric.h is not installed on purpose. After investigation,
# there are only two active repos left which use it, and those got a heads up
# about removal of this header in numpy 1.25.0:
# https://github.com/enthought/enable/issues/1005
# https://github.com/fhs/pyhdf/issues/63
py.install_sources(
installed_headers,
subdir: 'numpy/core/include/numpy'
)
py.install_sources(
[
'numpy/random/bitgen.h',
'numpy/random/distributions.h',
],
subdir: 'numpy/core/include/numpy/random'
)
py.install_sources(
[
'numpy/libdivide/libdivide.h',
'numpy/libdivide/LICENSE.txt',
],
subdir: 'numpy/core/include/numpy/random'
)
|