|
| 1 | +# Note that `python_xerbla.c` was excluded on Windows in setup.py; |
| 2 | +# unclear why and it seems needed, so unconditionally used here. |
1 | 3 | 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', |
10 | 4 | 'lapack_lite/python_xerbla.c',
|
11 | 5 | ]
|
12 |
| - |
13 |
| -# TODO: ILP64 support |
14 |
| - |
15 |
| -lapack_lite_module_src = ['lapack_litemodule.c'] |
16 | 6 | 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 | + ] |
19 | 17 | endif
|
20 | 18 |
|
21 | 19 | py.extension_module('lapack_lite',
|
22 |
| - lapack_lite_module_src, |
| 20 | + [ |
| 21 | + 'lapack_litemodule.c', |
| 22 | + lapack_lite_sources, |
| 23 | + ], |
23 | 24 | dependencies: [np_core_dep, blas_dep, lapack_dep],
|
24 | 25 | install: true,
|
25 | 26 | subdir: 'numpy/linalg',
|
26 | 27 | )
|
27 | 28 |
|
28 |
| -_umath_linalg_src = ['umath_linalg.cpp'] + lapack_lite_sources |
29 |
| - |
30 | 29 | 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], |
33 | 35 | link_with: npymath_lib,
|
34 | 36 | install: true,
|
35 | 37 | subdir: 'numpy/linalg',
|
|
0 commit comments