Evgeni Burovski
Evgeni Burovski
Okkkay, I see something different: ``` $ python dev.py build 💻 ninja -C /home/br/repos/scipy/scipy/build -j4 ninja: Entering directory `/home/br/repos/scipy/scipy/build' [3/4] Compiling C object scipy/optimize/_lbfgsb.cpython-312-x86_64-linux-gnu.so.p/__lbfgsb.c.o FAILED: scipy/optimize/_lbfgsb.cpython-312-x86_64-linux-gnu.so.p/__lbfgsb.c.o /home/br/miniforge3/envs/scipy-dev/bin/x86_64-conda-linux-gnu-cc -Iscipy/optimize/_lbfgsb.cpython-312-x86_64-linux-gnu.so.p -Iscipy/optimize -I../scipy/optimize...
Nah, I'm pretty sure there's a simpler solution. Will look simple in retrospect, that is :-). I'll take a look.
The following diff makes it build for me locally (bog-standard ubuntu linux, conda env + conda compilers, openblas from conda-forge: ```diff diff --git a/scipy/optimize/__lbfgsb.c b/scipy/optimize/__lbfgsb.c index 17af196bd6..1ea0cc507d 100644 --- a/scipy/optimize/__lbfgsb.c...
One other thing which looks a tad strange here is that the ModuleDef python glue is in the header file. I'm not claiming it's best practice, just noting that what...
> just did it in minpack quadpack and others and it worked independently. I think this C stuff is pretty much on consensus and no rules. So I really don't...
You seem to be building with scipy-openblas32 wheels. The symbols there have the `scipy_` prefix (`scipy_dscal` etc) and the build system is not informed. Try (the windows analog of) ```...
> By the way is it blas_dep, lapack_dep or blas, lapack in the meson files? No clue TBH :-). The difference seems to be https://github.com/ev-br/scipy/blob/bspl_c_api/scipy/meson.build#L244 that `lapack_dep` picks up some...
It does for me locally though. Not sure `--with-scipy-openblas` is enough without setting the `PKG_CONFIG_PATH` variable to point to it though. 1) Does `scipy-openblas.pc` actually exist? 2) Is the env...
``` ... Removing scipy-openblas.pc ... $env:PKG_CONFIG_PATH C:\Users\ilhan\Documents\GitHub\scipy ... Run-time dependency scipy-openblas found: YES 0.3.27.dev ``` This does not look consistent TBH: what is the openblas it found? (annoying that it...
That's progress actually! Let's enumerate the CI failures: Builds fine, fails tests with `AttributeError: module 'scipy.optimize._lbfgsb' has no attribute 'types'` (f2py implementation details or leftovers?) - Linux PyTorch/JAX/xp-strict CPU -...