Console scripts do not call sys.exit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Buildout |
Undecided
|
Unassigned |
Bug Description
When a 'console_script' is installed by easy_install it uses::
sys.exit(
)
A script installed by buildout does not call sys.exit(), so it does not match the
behaviour of easy_install.
kumar303 (kumar-mcmillan) wrote : | #1 |
Olaf Conradi (olaf-conradi) wrote : | #2 |
I ran into the same problem.
Any chance the attached patch can be merged?
Thanks
I ran into this problem when installing py.test with zc.recipe.egg (and z3c.recipe.
[py.test]
recipe = z3c.recipe.scripts
eggs = py.test
...
script-
import pytest
if __name__ == '__main__': sys.exit(
This bug was reported over 3 years ago and patched well over a year ago -- any decision on merging it in?
On Mon, Mar 14, 2011 at 3:06 PM, Andrew Clegg <email address hidden> wrote:
> This bug was reported over 3 years ago and patched well over a year ago
> -- any decision on merging it in?
I think it will happen at the sprints this week.
Jim
--
Jim Fulton
http://
Takeshi KOMIYA (i-tkomiya) wrote : | #6 |
Hi, I met this problem too.
Is there any problem to apply the fix?
I'm replacing generated scripts with sed command now...
Jim Fulton (jim-zope) wrote : | #7 |
This will be fixed in buildout 1.6.0, which should be released in a few days.
Changed in zc.buildout: | |
status: | New → Fix Committed |
Alin Voinea (avoinea) wrote : | #8 |
Where is version 1.6.0?
Hi. This is a problem for sphinx-build because running the doctest builder does not exit non-zero in a Makefile. This probably affects lots of other scripts since easy_install proper will create a script that exits non-zero.
Here is a patch that is working for me to fix the problem. I have not tried to run the zc.buildout test suite after this change though.