-
Notifications
You must be signed in to change notification settings - Fork 21
spin test fails after spin install #165
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
Comments
Yes, I see this directly on main. |
@akhmerov I am following the
I tried |
You need |
Yup, looks like |
I don't use conda, is there a pip equivalent of |
If you're on ubuntu/debian, I think everything should work if you apt install |
OK, on Fedora I had to install diff --git a/meson.build b/meson.build
index 7dafcfa..9759251 100644
--- a/meson.build
+++ b/meson.build
@@ -38,6 +38,8 @@ endif
inc_np = include_directories(incdir_numpy)
np_dep = declare_dependency(include_directories: inc_np)
mumps_names = get_option('mumps_names')
+inc_mumps = '/usr/include/MUMPS'
+mumps_dep = declare_dependency(include_directories: inc_mumps)
mumps_libs = []
foreach mumps_name : mumps_names
diff --git a/mumps/meson.build b/mumps/meson.build
index d0f73c6..4a04d29 100644
--- a/mumps/meson.build
+++ b/mumps/meson.build
@@ -23,7 +23,7 @@ endforeach
py.extension_module('_mumps',
pyx_files,
- dependencies: [np_dep, mumps_libs],
+ dependencies: [np_dep, mumps_libs, mumps_dep],
install: true,
subdir: 'mumps'
) It's unclear why they're missing a |
Something's also not quite right with the Anyway, after all that I cannot reproduce the failure with the latest spin from |
In the above error message, pytest suggests:
So, maybe try that. |
Here's the problem with the
Pretty sure that should have a numpy definition for other version of Python too. |
Thanks for pointing that out, I'll fix that spec in the next versions. That, however, doesn't seem to be the source of the problem and I observed it also on the updated main which just requires numpy. II have now also reproduced the problem in an isolated docker environment: sudo docker run --rm -it mambaorg/micromamba:1.4.3 bash micromamba install -y -c conda-forge python cython numpy scipy pytest ninja compilers meson-python mumps-seq git
git clone https://github.com/akhmerov/python-mumps/
cd python-mumps
pip install spin
spin install
spin test |
Can you share the Dockerfile, please? |
It's mambaorg/micromamba like in the snippet above; I didn't prepare a custom dockerfile. Copypasting the second code block into an interactive shell in the container reproduces the issue. |
Sorry, commented pre-caffeine. |
Python 3.11 has the `-P` flag. For other Pythons, we invoke `pytest` directly, which seems to handle PYTHONPATH correctly. Closes scientific-python#165
Python 3.11 has the `-P` flag. For other Pythons, we invoke `pytest` directly, which seems to handle PYTHONPATH correctly. Closes #165
I have a meson-python project (https://github.com/akhmerov/python-mumps), and I object the following if I run spin test after spin install:
spin test
functions properly if I dopip uninstall python-mumps
.The text was updated successfully, but these errors were encountered: