-
Notifications
You must be signed in to change notification settings - Fork 5
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
BLD: Adding spatial to Meson build #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the messagestream
incorporation and the missing /EHsc
and fvisibility-hidden
flags.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/czgdp1807ssd/scipy_project/meson_build/lib/python3.9/site-packages/scipy/spatial/__init__.py", line 101, in <module>
from ._procrustes import procrustes
File "/home/czgdp1807ssd/scipy_project/meson_build/lib/python3.9/site-packages/scipy/spatial/_procrustes.py", line 9, in <module>
from scipy.linalg import orthogonal_procrustes
File "/home/czgdp1807ssd/scipy_project/meson_build/lib/python3.9/site-packages/scipy/linalg/__init__.py", line 212, in <module>
from ._decomp_update import *
File "scipy/linalg/_decomp_update.pyx", line 1, in init scipy.linalg._decomp_update
TypeError: C function scipy.linalg.cython_blas.daxpy has wrong signature (expected void (int *, __pyx_t_5scipy_6linalg_11cython_blas_d *, __pyx_t_5scipy_6linalg_11cython_blas_d *, int *, __pyx_t_5scipy_6linalg_11cython_blas_d *, int *), got void (int *, __pyx_t_11cython_blas_d *, __pyx_t_11cython_blas_d *, int *, __pyx_t_11cython_blas_d *, int *)) Seems like a problem with |
Oh that's possible, |
Odd, this passes for me:
|
That said, the way |
There's one new build warning, maybe you can fix that?
note that the diff of the fix should also be recorded in |
Should I send the fix to main repo? |
Yes, that would be great. |
I can reproduce the
the difference is py3.extension_module('_decomp_update',
[_decomp_update_pyx, _dummy_init, _dummy_init2, _linalg_pxd],
include_directories : inc_np,
dependencies : py3_dep,
install : true,
subdir : 'scipy/linalg') and these are the build rules generated (in build scipy/linalg/_decomp_update.pyx: CUSTOM_COMMAND ../scipy/linalg/_decomp_update.pyx.in | ../scipy/_build_utils/tempita.py /home/rgommers/anaconda3/envs/scipy-meson/bin/python3.9
COMMAND = /home/rgommers/anaconda3/envs/scipy-meson/bin/python3.9 ../scipy/_build_utils/tempita.py ../scipy/linalg/_decomp_update.pyx.in -o scipy/linalg
description = Generating$ _decomp_update$ with$ a$ custom$ command
build scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/scipy/linalg/_decomp_update.pyx.c: cython_COMPILER scipy/linalg/_decomp_update.pyx
ARGS = --fast-fail -3 -o scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/scipy/linalg/_decomp_update.pyx.c
build scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/meson-generated_scipy_linalg__decomp_update.pyx.c.o: c_COMPILER scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/scipy/linalg/_decomp_update.pyx.c || scipy/__init__.py scipy/linalg.pxd scipy/linalg/__init__.py
DEPFILE = scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/meson-generated_scipy_linalg__decomp_update.pyx.c.o.d
DEPFILE_UNQUOTED = scipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p/meson-generated_scipy_linalg__decomp_update.pyx.c.o.d
ARGS = -Iscipy/linalg/_decomp_update.cpython-39-x86_64-linux-gnu.so.p -Iscipy/linalg -I../scipy/linalg -I/home/rgommers/anaconda3/envs/scipy-meson/lib/python3.9/site-packages/numpy/core/include -Iscipy -I/home/rgommers/anaconda3/envs/scipy-meson/include/python3.9 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -std=c99 -O2 -g -Wno-unused-function -Wno-conversion -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-incompatible-pointer-types -fPIC The second I've seen this issue once before; I need to write a standalone reproducer to submit the issue to Meson. |
The easy workaround is to rerun the build, touching the The spatial tests still depend on
|
May be we can update mesondev.sh to run the build twice before installing.
Okay. Sure. |
good idea, done in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, merging. Thanks Gagan!
Great. Moving on to |
DFS? |
Depth First Search - We are moving to the next module if current one relies on the next. Kind of going in depth in the module dependency graph. |
Reference issue
What does this implement/fix?
Additional information