[Distutils] zc.buildout generated console scripts with sys.exit
Olaf Conradi
olaf at conradi.org
Sat Jan 9 01:28:15 CET 2010
Hello,
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
http://www.artima.com/weblogs/viewpost.jsp?thread=4829
def main(argv=None):
if argv is None:
argv = sys.argv
# ...
return 0
if __name__ == "__main__":
sys.exit(main())
Can this be supported?
I noticed a patch is attached to
https://bugs.launchpad.net/zc.buildout/+bug/164629
In short, my buildout looks like this:
[py]
recipe = zc.recipe.egg
eggs = myprogram
Thanks,
-Olaf
-------------- 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