Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / meson-python / add-build-flags.sh
blobd9327960eb1df6b6916b80bf247143392dae62f1
1 mesonPythonBuildFlagsHook() {
2 # Add all of mesonFlags to -Csetup-args for pypa builds
3 for f in $mesonFlags; do
4 pypaBuildFlags+=" -Csetup-args=$f"
5 # This requires pip>23.0.1, see: https://meson-python.readthedocs.io/en/latest/how-to-guides/config-settings.html
6 pipBuildFlags+=" --config-settings=setup-args=$f"
7 done
10 postConfigureHooks+=(mesonPythonBuildFlagsHook)