[Distutils] entry points PEP

Paul Moore p.f.moore at gmail.com
Sat Jul 20 09:25:24 CEST 2013


On 19 July 2013 23:22, Monty Taylor <monty.taylor at gmail.com> wrote:

> Yeah. Not moving to zc.buildout for anything. I believe it will be a
> better option to just write by-hand scripts that get installed that just do:
>
> from nova.rootwrap import cmd
>
> return cmd.main(sys.argv)
>
> or something. Basically, a tiny boiler-plate script that does the same
> thing as a console_scripts entry point thing without loading the module in
> question via pkg_resources.


Do you care about Windows compatibility for your app? If not, this is
probably your best option. If you do, you'll need to add exe wrappers for
the scripts on Windows - if you need that, then using distlib's script
generator might be worth investigating.

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130720/191d262c/attachment.html>


More information about the Distutils-SIG mailing list