Hi, I just found out about this PEP. Love the idea. It seems though that no build backend authors looked at this PEP in detail - that would probably have been helpful. What the PEP says about sysconfig and CFLAGS propagation is pretty much entirely setuptools-specific. It would be useful to update it for the generic case[1], and if the goal really is to get all build backends to inherit the CPython interpreter’s build-time choice, then the modern way would be to add it to build-details.json (see PEP 739). I posted a more extensive analysis about how to deal with this PEPs recommendations at Building extensions with hardening flags (via manylinux) - #19 by rgommers.
Many of the most widely used packages have moved away from
setuptoolsby now, so this isn’t just academic. ↩︎