This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Oliver.Jeeves
Recipients Oliver.Jeeves, tarek
Date 2010-02-12.17:29:02
SpamBayes Score 4.726107e-10
Marked as misclassified No
Message-id <1265995747.45.0.532654407664.issue7918@psf.upfronthosting.co.za>
In-reply-to
Content
When trying to build a python package for distribution, compile errors are always ignored. The setup function will return successfully even if it was unable to compile some modules due to, for example, indentation errors.

The specific situation I'm trying to deal with, is a script that builds a large number of eggs, and trying to detect if something went wrong.

I see that this has been raised as a bug for setuptools:

http://bugs.python.org/setuptools/issue61

But it's not considered an issue because it's how distutils works.

distutils.util.byte_compile calls py_compile.compile, but does not pass a doraise argument to it.

The only suggestion for how to get tools that use distutils.util.byte_compile (like setuptools.setup and distutils.core.setup) to exit on an error is to monkey patch py_compile.compile to change its default doraise argument to True. That suggestion came from here:

http://stackoverflow.com/questions/2230843/how-can-i-detect-errors-programatically-when-building-an-egg-with-setuptools

supressing compile errors when making a distribution seems like a bug to me, but just having the option to easily change this behaviour would be great.
History
Date User Action Args
2010-02-12 17:29:07Oliver.Jeevessetrecipients: + Oliver.Jeeves, tarek
2010-02-12 17:29:07Oliver.Jeevessetmessageid: <1265995747.45.0.532654407664.issue7918@psf.upfronthosting.co.za>
2010-02-12 17:29:05Oliver.Jeeveslinkissue7918 messages
2010-02-12 17:29:02Oliver.Jeevescreate