[Distutils] How to handle launcher script importability?

Paul Moore p.f.moore at gmail.com
Wed Aug 21 12:36:27 CEST 2013


On 21 August 2013 11:30, Donald Stufft <donald at stufft.io> wrote:

> On Aug 21, 2013, at 6:29 AM, Donald Stufft <donald at stufft.io> wrote:
>
> introspecting the author email address
>
>
> Of course I wrote that and then did summary because the location of the
> author email address changed between Metadata 1.x and 2.x and I didn't feel
> like looking up the exact difference.
>

:-)

So would you see the API for author being

if meta.version < (2, 0):
    author = meta["whatever_it_is_in_1.x"]
else:
    author = meta["whatever_it_is_in_2.x"]

(i.e., the metadata version would be available)?

Sounds like a sensible approach.

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


More information about the Distutils-SIG mailing list