From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8E74F6DE1373 for ; Thu, 12 Mar 2020 09:57:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.389 X-Spam-Level: X-Spam-Status: No, score=0.389 tagged_above=-999 required=5 tests=[AWL=-0.263, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AilBq7Ci6u5d for ; Thu, 12 Mar 2020 09:57:58 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id D08176DE1370 for ; Thu, 12 Mar 2020 09:57:57 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 1E3AE100069 for ; Thu, 12 Mar 2020 18:57:52 +0200 (EET) From: Tomi Ollila To: Notmuch Mail Subject: Re: [PATCH] nmbug: explicitly prefer python3 In-Reply-To: <87r1xyp3tc.fsf@fifthhorseman.net> References: <20180209043211.4792-1-dkg@fifthhorseman.net> <87r1xyp3tc.fsf@fifthhorseman.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 16:57:59 -0000 On Thu, Mar 12 2020, Daniel Kahn Gillmor wrote: > 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 ? I've been running nmbug with a wrapper that runs python 2.7 (since default python in that particular machine is python 2.6 -- which doesn't work with nmbug (or it may but that is complicated, i'm not sure...). So, to me just doing 1,s/python/python3/ does not affect me in any way for the time being -- and anyone else who is stuck w/ python 2.7 (i doubt there are any) could still use python 2.7 the same way... So, IMO let's get it done =D > > --dkg Tomi > > 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 >> --- >> 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 >> # W. Trevor King >> 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 >> # >> # 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