bpo-32430: During 'configure', don't copy Setup.dist to Setup. by nascheme · Pull Request #8260 · python/cpython (original) (raw)

In the past, users building Python were expected to modify the
Modules/Setup file. In that case, preserving their local
modifications on re-execution of 'configure' was useful. Further,
to support users modifying Setup and re-runnning make, there was
dependency rules in the Makefile to re-run makesetup if needed,
which would re-generate Makefile and Modules/config.c.

For modern builds of Python, most users never touch Modules/Setup.
In that case, the behavior of preserving Modules/Setup is
counter-productive since updating Modules/Setup.dist will result in
a stale copy of Modules/Setup being used. In that case 'make'
outputs a warning. In the past, the warning was the last output
from 'make'. Now we run setup.py and so that warning is buried
under a pile of build tool output. So, the net effect is that the
build can fail and the user doesn't know how to fix it. Running
'configure' again is not sufficient because the out-of-date
Modules/Setup file is preserved.

This change does the following:

https://bugs.python.org/issue32430