Some of my ideas I trialed in https://github.com/virtuald/hatch-pkgconf-meson leveraging https://github.com/pypackaging-native/pkgconf-pypi... it all comes from stuff originally pioneered in robotpy-build and described in https://discuss.python.org/t/native-dependencies-in-other-wheels-how-i-do-it-but-maybe-we-can-standardize-something/23913
Meson can already link to libraries in other wheels, as long as the wheels are careful about setting up their RPATH correctly. However, I think we would need to detect/massage any .pc files generated by meson to allow the libraries to be correctly linked to from other wheels.
Related meson-python bugs for reading:
And discussions that contain comments that are relevant:
And also this patchelf discussion is useful too:
And meson bugs too
Some of my ideas I trialed in https://github.com/virtuald/hatch-pkgconf-meson leveraging https://github.com/pypackaging-native/pkgconf-pypi... it all comes from stuff originally pioneered in robotpy-build and described in https://discuss.python.org/t/native-dependencies-in-other-wheels-how-i-do-it-but-maybe-we-can-standardize-something/23913
Meson can already link to libraries in other wheels, as long as the wheels are careful about setting up their RPATH correctly. However, I think we would need to detect/massage any .pc files generated by meson to allow the libraries to be correctly linked to from other wheels.
Related meson-python bugs for reading:
import('pkgconfig').generate()generates wrong Meson introspection data mesonbuild/meson-python#609And discussions that contain comments that are relevant:
And also this patchelf discussion is useful too:
And meson bugs too