Ben Greiner wrote:
Hi Atri,
Am 23.04.24 um 13:32 schrieb Atri Bhattacharya:
This came up during a fix towards making dlib builds reproducible: https://build.opensuse.org/request/show/1169495 but perhaps the issue with pyproject_wheel is more general. If the user (packager) needs to pass options to `setup.py`, as in the case of dlib where it needs to be passed `--no USE_AVX_INSTRUCTIONS` for example, it seems there is no way to pass this from the %pyproject_wheel macro and we need to revert back to the older %python_build macro instead.
Try setting the environment variable PIP_CONFIG_SETTINGS as a workaround, but I am not sure if setuptools currently ignores that setting or not.
In this specific case, it seems to not work, but thanks for the suggestion. Perhaps it will be useful for some other package, definitely something I shall keep in mind. Cheers, -- Atri