daniel.garcia@suse.com wrote:
On mar, 2024-04-23 at 11:32 +0000, Atri Bhattacharya wrote:
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.
As far as I know, in this specific case it's not possible to change the cmake arguments without calling setup.py directly, looks like it's looking for options in sys.argv directly [1], so it will never work with %pyproject_wheel.
[1] https://github.com/davisking/dlib/blob/master/setup.py#L51
Thanks, that is what I understood as well. I hope the %python_build macros will stick around for a while still, will they? Cheers, -- Atri