Here is a patch for detecting problems running pyversions. I have tested it with packages that do not specify distutils and those that do, as well as testing it with non python package building.
fail-on-pyversions-failure.patch
Description: Binary data