If I have a script that builds eggs, basically by running
python setup.py bdist_egg --exclude-source-files
for a number of setup.py files that use setuptools
to define how eggs are built, is there an easy way to determine if there were any errors in building the egg?
A situation I had recently, was that there was a syntax error in a module. Setuptools spat out a message onto standard error, but continued to create the egg, omitting to broken module. Because this was part of a batch creating a number of eggs, the error was missed, and the result was useless.
Is there a way to detect errors when building an egg programatically, other than just capturing standard error and parsing that?