We recently got an issue reported on scikit-build-core that our editable install Finder is breaking tools like beartype that add sys.path_hooks 1. The issue on our side seems to be that we should be running find_spec before trying to create our own spec 2. Fwict mesonpy would have the same issue
|
def find_spec(fullname: str, tree: Node) -> Optional[importlib.machinery.ModuleSpec]: |
Have you had similar issues reported? Or if it is not a problem for you, any guidance on what black magic is done here?
We recently got an issue reported on scikit-build-core that our editable install
Finderis breaking tools likebeartypethat addsys.path_hooks1. The issue on our side seems to be that we should be runningfind_specbefore trying to create our own spec 2. Fwict mesonpy would have the same issuemeson-python/mesonpy/_editable.py
Line 255 in 47ea86f
Have you had similar issues reported? Or if it is not a problem for you, any guidance on what black magic is done here?
Footnotes
https://github.com/beartype/beartype/issues/556 ↩
https://github.com/scikit-build/scikit-build-core/pull/1493 ↩