Cannot map shared library installed by CMake subproject to wheel install location #598
Description
In a pyproject-based project, an external dependency is built using cmake (and another one using autotools) as fallback. This works well using plain meson, however pip install --editable .
fails with
meson-python: error: Could not map installation path to an equivalent wheel directory: '{prefix}/lib/.so'
(see https://github.com/sagemath/sage/actions/runs/8222294612/job/22483617409?pr=37077#step:5:54174)
I can workaround this error message by providing the skip-subprojects
argument for install
. Then the editable wheel is built successful, but on runtime it does not find the <external>.so
file just built.
I've seen
- Best practice for optionally bundling a library dependency #556
- How can I bundle a shared library in a wheel with mesonpy? #410
- Building Windows wheels with libraries fails #525
which discuss similar issues. However, my main problem (at least for the moment) is to create an editable installation for (local) development, and not build a wheel for pypi. So cibuildwheel etc are not really a solution.