Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13c55db

Browse files
committed
BLD: fix _umath_linalg dependencies, remove linalg.lapack_lite
1 parent 5ba26f0 commit 13c55db

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

numpy/linalg/meson.build

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,19 @@ lapack_lite_sources = [
77
'lapack_lite/f2c_blas.c',
88
'lapack_lite/f2c_config.c',
99
'lapack_lite/f2c_lapack.c',
10-
'lapack_lite/python_xerbla.c',
1110
]
1211

13-
# TODO: ILP64 support
14-
15-
lapack_lite_module_src = ['lapack_litemodule.c']
12+
_umath_linalg_src = ['umath_linalg.cpp']
1613
if not have_lapack
17-
lapack_lite_module_src += lapack_lite_sources
14+
_umath_linalg_src += lapack_lite_sources
15+
endif
16+
if not is_windows
17+
_umath_linalg_src += ['lapack_lite/python_xerbla.c']
1818
endif
19-
20-
py.extension_module('lapack_lite',
21-
lapack_lite_module_src,
22-
dependencies: [np_core_dep, blas_dep, lapack_dep],
23-
install: true,
24-
subdir: 'numpy/linalg',
25-
)
26-
27-
_umath_linalg_src = ['umath_linalg.cpp'] + lapack_lite_sources
2819

2920
py.extension_module('_umath_linalg',
3021
_umath_linalg_src,
31-
dependencies: np_core_dep,
22+
dependencies: [np_core_dep, blas_dep, lapack_dep],
3223
link_with: npymath_lib,
3324
install: true,
3425
subdir: 'numpy/linalg',

numpy/tests/test_public_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ def test_NPY_NO_EXPORT():
207207
"lib.ufunclike",
208208
"lib.user_array", # note: not in np.lib, but probably should just be deleted
209209
"lib.utils",
210-
"linalg.lapack_lite",
211210
"linalg.linalg",
212211
"ma.core",
213212
"ma.testutils",

0 commit comments

Comments
 (0)