pyprog: Wrap entry-point call with sys.exit()
Reading this spec, we probably want to change ``` entry_run = 'from %s import %s; %s()' % (mod, func, func) ``` to ``` entry_run = 'import sys; from %s import %s; sys.exit(%s())' % (mod, func, func) ``` to follow https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts , this is also what `zc.recipe.egg` does. /reviewed-by @kirr /reviewed-on !1108
Showing
Please register or sign in to comment