[Distutils] zc.buildout generated console scripts with sys.exit

Olaf Conradi olaf at conradi.org
Sat Jan 9 01:28:15 CET 2010


I wanted use zc.buildout for a program that I wrote, but noticed that the
generated console script does not call sys.exit, unlike setuptools.

My main function uses a structure as explained by Guido in

def main(argv=None):
    if argv is None:
        argv = sys.argv
    # ...
    return 0

if __name__ == "__main__":

Can this be supported?

I noticed a patch is attached to

In short, my buildout looks like this:

recipe = zc.recipe.egg
eggs = myprogram

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100109/0a2f192e/attachment.htm>

More information about the Distutils-SIG mailing list