mesonbuild / wrapdb

New wrap requests
https://mesonbuild.com/Adding-new-projects-to-wrapdb.html
MIT License
69 stars 176 forks source link

Support installing Python packages in CI #1481

Closed bgilbert closed 2 months ago

bgilbert commented 2 months ago

glib 2.80+ build-requires the Python packaging package, which isn't preinstalled in the MSYS runners. In this specific case, we could install it from an MSYS package, but some Python dependencies might not be available from all platform package managers. Support installing arbitrary Python packages from pip on all platforms.

bgilbert commented 2 months ago

...actually it turns out that the problem was the MSYS runners, not the Visual Studio ones, and packaging is available from MSYS. I still think this is useful, but it isn't strictly necessary for the original use case. I'll update the PR accordingly.

eli-schwartz commented 2 months ago

If there's no particular need for it right now I'd suggest sticking with msys2_packages -- it is anyways a better idea to use the native package manager as that is guaranteed to provide a prebuilt copy that doesn't need compiling from an sdist, regardless of whether the PyPI package provides wheels.

bgilbert commented 2 months ago

Okay, sounds good.