8000 BLD: fix ``_umath_linalg`` dependencies by charris · Pull Request #24591 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD: fix _umath_linalg dependencies #24591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions numpy/linalg/meson.build
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
# Note that `python_xerbla.c` was excluded on Windows in setup.py;
# unclear why and it seems needed, so unconditionally used here.
lapack_lite_sources = [
'lapack_lite/f2c.c',
'lapack_lite/f2c_c_lapack.c',
'lapack_lite/f2c_d_lapack.c',
'lapack_lite/f2c_s_lapack.c',
'lapack_lite/f2c_z_lapack.c',
'lapack_lite/f2c_blas.c',
'lapack_lite/f2c_config.c',
'lapack_lite/f2c_lapack.c',
'lapack_lite/python_xerbla.c',
]

# TODO: ILP64 support

lapack_lite_module_src = ['lapack_litemodule.c']
if not have_lapack
warning('LAPACK was not found, NumPy is using an unoptimized, naive build from sources!')
lapack_lite_module_src += lapack_lite_sources
lapack_lite_sources += [
'lapack_lite/f2c.c',
'lapack_lite/f2c_c_lapack.c',
'lapack_lite/f2c_d_lapack.c',
'lapack_lite/f2c_s_lapack.c',
'lapack_lite/f2c_z_lapack.c',
'lapack_lite/f2c_blas.c',
'lapack_lite/f2c_config.c',
'lapack_lite/f2c_lapack.c',
]
endif

py.extension_module('lapack_lite',
lapack_lite_module_src,
[
'lapack_litemodule.c',
lapack_lite_sources,
],
dependencies: [np_core_dep, blas_dep, lapack_dep],
install: true,
subdir: 'numpy/linalg',
)

_umath_linalg_src = ['umath_linalg.cpp'] + lapack_lite_sources

py.extension_module('_umath_linalg',
_umath_linalg_src,
dependencies: np_core_dep,
[
'umath_linalg.cpp',
lapack_lite_sources,
],
dependencies: [np_core_dep, blas_dep, lapack_dep],
link_with: npymath_lib,
install: true,
subdir: 'numpy/linalg',
Expand Down
0