Skip to content

Commit 21c65ab

Browse files
rgommerstylerjereddy
authored andcommitted
BLD: fix some issues with undeclared internal build dependencies
This is a follow-up to scipygh-21983, and fixes some more issues reported on scipygh-18909. It's possible to run into these when building with a high level of parallelism, or trying to build just a single target like `spatial/_qhull.so` with Ninja.
1 parent 826759e commit 21c65ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scipy/linalg/meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cython_linalg = custom_target('cython_linalg',
2828
install_tag: 'devel'
2929
)
3030
cython_blas_pxd = cython_linalg[2]
31+
cython_lapack_pxd = cython_linalg[3]
3132

3233
# pyx -> c, pyx -> cpp generators, depending on __init__.py here.
3334
linalg_init_cython_gen = generator(cython,
@@ -39,7 +40,7 @@ linalg_init_cython_gen = generator(cython,
3940
linalg_init_utils_cython_gen = generator(cython,
4041
arguments : cython_args,
4142
output : '@[email protected]',
42-
depends : [_cython_tree, __init__py, _cy_array_utils_pxd])
43+
depends : [_cython_tree, __init__py, _cy_array_utils_pxd, cython_lapack_pxd])
4344

4445
# pyx -> c, pyx -> cpp generators, depending on copied pxd files and init
4546
linalg_cython_gen = generator(cython,
@@ -104,7 +105,7 @@ py3.extension_module('_flapack',
104105

105106
# _decomp_interpolative
106107
py3.extension_module('_decomp_interpolative',
107-
linalg_init_cython_gen.process('_decomp_interpolative.pyx'),
108+
linalg_cython_gen.process('_decomp_interpolative.pyx'),
108109
c_args: cython_c_args,
109110
dependencies: np_dep,
110111
link_args: version_link_args,

scipy/spatial/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _spatial_pxd = [
88
spt_cython_gen = generator(cython,
99
arguments : cython_args,
1010
output : '@[email protected]',
11-
depends : [_cython_tree, _spatial_pxd, _lib_pxd])
11+
depends : [_cython_tree, _spatial_pxd, _lib_pxd, cython_lapack_pxd])
1212

1313
qhull_src = [
1414
'qhull_src/src/geom2_r.c',

0 commit comments

Comments
 (0)