mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
10 lines
428 B
Bash
10 lines
428 B
Bash
mesonPythonBuildFlagsHook() {
|
|
# Add all of mesonFlags to -Csetup-args for pypa builds
|
|
for f in $mesonFlags "${mesonFlagsArray[@]}"; do
|
|
appendToVar pypaBuildFlags "-Csetup-args=$f"
|
|
# This requires pip>23.0.1, see: https://meson-python.readthedocs.io/en/latest/how-to-guides/config-settings.html
|
|
appendToVar pipBuildFlags "--config-settings=setup-args=$f"
|
|
done
|
|
}
|
|
|
|
postConfigureHooks+=(mesonPythonBuildFlagsHook)
|