This was suggested in #31476 (comment):
An alternative would be to require python to be disabled explicitly. Otherwise, it seems odd that every setting in cmake has a static default that can only be overridden explicitly, except for some, which are silently downgraded?
This PR updates the build system to fail by default on systems where the minimum required Python version is unavailable. It introduces an option that allows users to explicitly disable the Python requirement.
The last commit is temporary and should be reverted once the minimum required Python version becomes available in the CentOS image being used.
Closes #31476.