8000 Merge pull request #24591 from charris/backport-24584 · numpy/numpy@7deb087 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7deb087

Browse files
authored
Merge pull request #24591 from charris/backport-24584
BLD: fix ``_umath_linalg`` dependencies
2 parents 1789c02 + 4839060 commit 7deb087

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

numpy/linalg/meson.build

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1+
# Note that `python_xerbla.c` was excluded on Windows in setup.py;
2+
# unclear why and it seems needed, so unconditionally used here.
13
lapack_lite_sources = [
2-
'lapack_lite/f2c.c',
3-
'lapack_lite/f2c_c_lapack.c',
4-
'lapack_lite/f2c_d_lapack.c',
5-
'lapack_lite/f2c_s_lapack.c',
6-
'lapack_lite/f2c_z_lapack.c',
7-
'lapack_lite/f2c_blas.c',
8-
'lapack_lite/f2c_config.c',
9-
'lapack_lite/f2c_lapack.c',
104
'lapack_lite/python_xerbla.c',
115
]
12-
13-
# TODO: ILP64 support
14-
15-
lapack_lite_module_src = ['lapack_litemodule.c']
166
if not have_lapack
17-
warning('LAPACK was not found, NumPy is using an unoptimized, naive build from sources!')
18-
lapack_lite_module_src += lapack_lite_sources
7+
lapack_lite_sources += [
8+
'lapack_lite/f2c.c',
9+
'lapack_lite/f2c_c_lapack.c',
10+
'lapack_lite/f2c_d_lapack.c',
11+
'lapack_lite/f2c_s_lapack.c',
12+
'lapack_lite/f2c_z_lapack.c',
13+
'lapack_lite/f2c_blas.c',
14+
'lapack_lite/f2c_config.c',
15+
'lapack_lite/f2c_lapack.c',
16+
]
1917
endif
2018

2119
py.extension_module('lapack_lite',
22-
lapack_lite_module_src,
20+
[
21+
'lapack_litemodule.c',
22+
lapack_lite_sources,
23+
],
2324
dependencies: [np_core_dep, blas_dep, lapack_dep],
2425
install: true,
2526
subdir: 'numpy/linalg',
2627
)
2728

28-
_umath_linalg_src = ['umath_linalg.cpp'] + lapack_lite_sources
29-
3029
py.extension_module('_umath_linalg',
31-
_umath_linalg_src,
32-
dependencies: np_core_dep,
30+
[
31+
'umath_linalg.cpp',
32+
lapack_lite_sources,
33+
],
34+
dependencies: [np_core_dep, blas_dep, lapack_dep],
3335
link_with: npymath_lib,
3436
install: true,
3537
subdir: 'numpy/linalg',

0 commit comments

Comments
 (0)
0