Closed dnicolodi closed 4 months ago
Thanks for testing. I cut some corners in the implementation. It seems that pytest uses one of the interfaces I haven't implemented. I'll add it when I find a moment.
Great, let me know if there is something I can help with!
@lesteve Can you try again, please?
Great! This seems to fix both https://github.com/mesonbuild/meson-python/issues/557#issuecomment-1891684893 and https://github.com/mesonbuild/meson-python/issues/568.
I just saw that this was added on the 0.16.0 milestone, which is great news, let me know if there is anything I can do to help move it forward!
Yes, I hope we can get this in and released soon. I need to finish testing and reviewing; holidays interfered a bit. I'll try to finalize my review in the next couple of days.
Thanks for this PR!
I gave in a go to see whether that would fix the issue we were seeing in scikit-learn where some of our tests are using
pkgutil.walk_packages
as I mentioned in https://github.com/mesonbuild/meson-python/issues/557#issuecomment-1891684893.Right now if I try to run the problematic test with pytest, I get an error
AttributeError: 'MesonpyPathFinder' object has no attribute 'find_spec'
, see below for full stack-trace.Let me know if I can provide additional information!
Full stack-trace
``` ❯ pytest sklearn/tests/test_common.py -k are_importable + /home/lesteve/micromamba/envs/del/bin/ninja ninja: no work to do. Traceback (most recent call last): File "