mesonbuild / mesonbuild/meson-python
Possible breakage against `beartype`?
- Dominant language
- Python
- Stars
- 180
- Forks
- 93
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 18
Description
We recently got an [issue](https://github.com/scikit-build/scikit-build-core/issues/1492) 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
https://github.com/mesonbuild/meson-python/blob/47ea86f0cefa3a5285ae804ff5980b3a178bec43/mesonpy/_editable.py#L255
Have you had similar issues reported? Or if it is not a problem for you, any guidance on what black magic is done here?
[^1]: https://github.com/beartype/beartype/issues/556
[^2]: https://github.com/scikit-build/scikit-build-core/pull/1493
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with mesonpy/_editable.py around line 255 and inspect how the editable-install Finder interacts with sys.path_hooks and find_spec. Reproduce the reported beartype compatibility issue, then verify whether the editable finder avoids breaking tools that install their own path hooks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100