[PATCH] nmbug: explicitly prefer python3

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Mar 11 21:58:23 PDT 2020


Two years later, I'd like to re-propose this patch that moves nmbug to
python3.

I have read what PEP 394 says (thanks for the pointer, Trevor!) but in
practice (a) i do not see debian pointing /usr/bin/python to python3 any
time in the near future, (b) python2 is officially EOL, and (c) i don't
have a "python" binary in my $PATH at all any more on the machines where
i do most of my development work.

Can we please just be done with requiring people who actively develop
notmuch to keep python 2 installed, or to point some other element named
python maintained in their path ?

           --dkg

On Thu 2018-02-08 23:32:11 -0500, Daniel Kahn Gillmor wrote:
> nmbug and notmuch-report are developer tools.  It's 2018, and all
> developers should have python3 available.
>
> Signed-off-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
> ---
>  devel/nmbug/nmbug          | 2 +-
>  devel/nmbug/notmuch-report | 5 ++---
>  2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug
> index c35dd75d..043c1863 100755
> --- a/devel/nmbug/nmbug
> +++ b/devel/nmbug/nmbug
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python3
>  #
>  # Copyright (c) 2011-2014 David Bremner <david at tethera.net>
>  #                         W. Trevor King <wking at tremily.us>
> diff --git a/devel/nmbug/notmuch-report b/devel/nmbug/notmuch-report
> index a9c2a6ec..a4c13939 100755
> --- a/devel/nmbug/notmuch-report
> +++ b/devel/nmbug/notmuch-report
> @@ -1,10 +1,9 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python3
>  #
>  # Copyright (c) 2011-2012 David Bremner <david at tethera.net>
>  #
>  # dependencies
> -#       - python 2.6 for json
> -#       - argparse; either python 2.7, or install separately
> +#       - python3 or python2.7
>  #
>  # This program is free software: you can redistribute it and/or modify
>  # it under the terms of the GNU General Public License as published by
> -- 
> 2.15.1
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20200312/8542d236/attachment.sig>


More information about the notmuch mailing list