[Tutor] setup.py "script" vs "console_scripts" Was: if __name__=='main' vs entry points: What to teach new comers?
Ben Finney
ben+python at benfinney.id.au
Mon Aug 7 21:30:52 EDT 2017
Thomas Güttler <guettliml at thomas-guettler.de> writes:
> Why is "the sane default is 'use console_scripts entry-point in
> setup.py'" not a good answer?
Because third-party Setuptools is required for entry points, which means
entry points cannot be a default choice.
It may well be a good choice for many cases. But that's a different
matter from it being a good *default* choice; it can only be a default
choice if it's in the standard library.
--
\ “The best in us does not require the worst in us: Our love of |
`\ other human beings does not need to be nurtured by delusion.” |
_o__) —Sam Harris, at _Beyond Belief 2006_ |
Ben Finney
More information about the Tutor
mailing list