[Distutils] Adding entry points into Distutils ?

Doug Hellmann doug.hellmann at gmail.com
Thu May 7 14:35:44 CEST 2009


On May 6, 2009, at 9:38 PM, Wheat wrote:

> I'll also mention my most common use-case for using entry_points is
> installing
> console_scripts using zc.recipe.egg.

I'm curious about that because I've never understood the benefit of  
using entry points for console scripts.  Why not just list the script  
as a part of the package and have it installed "normally"?

> Also, using console_scripts for entry_points means that there is a
> second
> way of specifying scripts, since Distutils already has the 'scripts'
> metadata field. I would say that the 'scripts' field should then be
> deprecated, but perhaps there are reason's beyond breaking backwards
> compatability for keeping that field around?

I would argue the other way.  Why force authors of console scripts to  
deal with entry points instead of just installing the script as-is?

Doug



More information about the Distutils-SIG mailing list