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 A95DF6DE01E6 for ; Mon, 12 Feb 2018 09:54:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.147 X-Spam-Level: X-Spam-Status: No, score=-0.147 tagged_above=-999 required=5 tests=[AWL=0.065, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] 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 CkPbhRaHYs8V for ; Mon, 12 Feb 2018 09:54:56 -0800 (PST) Received: from resqmta-po-05v.sys.comcast.net (resqmta-po-05v.sys.comcast.net [96.114.154.164]) by arlo.cworth.org (Postfix) with ESMTPS id F06D06DE00AC for ; Mon, 12 Feb 2018 09:54:55 -0800 (PST) Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) by resqmta-po-05v.sys.comcast.net with ESMTP id lIJQeyji9YLH9lIJaeF6WE; Mon, 12 Feb 2018 17:54:54 +0000 Received: from mail.tremily.us ([67.168.0.137]) by resomta-po-17v.sys.comcast.net with SMTP id lIHdezkJPYw26lIHeeITqB; Mon, 12 Feb 2018 17:52:54 +0000 Received: by mail.tremily.us (Postfix, from userid 1000) id DACD51402ED0; Mon, 12 Feb 2018 09:53:33 -0800 (PST) Date: Mon, 12 Feb 2018 09:53:33 -0800 From: "W. Trevor King" To: Daniel Kahn Gillmor Cc: Notmuch Mail Subject: Re: [PATCH] nmbug: explicitly prefer python3 Message-ID: <20180212175333.GA23662@valgrind.us> References: <20180209043211.4792-1-dkg@fifthhorseman.net> <20180209171257.GG30368@valgrind.us> <87bmgyt3gf.fsf@fifthhorseman.net> <20180209204624.GL30368@valgrind.us> <87tvumrhcb.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <87tvumrhcb.fsf@fifthhorseman.net> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.7.2 (2016-11-26) X-CMAE-Envelope: MS4wfCvSOb7l3Bgkb7mIbIv2voayQIvwpls64qQsV+bZ4R4YMMfxgv+F6sC1lqsmLoZZckFSrze+pP80eMnNFZybo6mzHj0WyVoidIp0Y3i48Y3etSwVq+3c HU9In/6N1Hvkqmlu918sK5AHKHuSd5CULUvurk4IHhO0Gx7ZuRmH+RZLvc/J0OKj13BMEVm82IEqlkA48BfIciNzNpepARiCv44= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Mon, 12 Feb 2018 17:54:58 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 11, 2018 at 10:56:36PM -0500, Daniel Kahn Gillmor wrote: > On Fri 2018-02-09 12:46:24 -0800, W. Trevor King wrote: > > From later on in PEP 394 [1]: > > > > It is anticipated that there will eventually come a time where > > the third party ecosystem surrounding Python 3 is sufficiently > > mature for this recommendation to be updated to suggest that the > > python symlink refer to python3 rather than python2. > > > > And from right up at the beginning [2]: > > > > however, end users should be aware that python refers to python3 > > on at least Arch Linux (that change is what prompted the > > creation of this PEP), so python should be used in the shebang > > line only for scripts that are source compatible with both > > Python 2 and 3. > > > > On my Gentoo system, I've also selected Python 3 to back =E2=80=98pytho= n=E2=80=99. > > So I think your solution should be =E2=80=9Cadd a /usr/bin/python symli= nk > > to your python3=E2=80=9D, not =E2=80=9Cclaim that nmbug is only compati= ble with > > Python 3=E2=80=9D. >=20 > Presumably you still have /usr/bin/python3 in addition to > /usr/bin/python as well. So the one thing i think we're both > agreeing on is that we use nmbug with python 3. Yup. But I'm not sure that is the case for all nmbug users. > It looks to me like you're asking me to change my operating system > to accomodate your naming preference. No, I'm asking you to change your operating system to accommodate PEP 394's naming preferences. As PEP 394 points out, Arch made the switch to using =E2=80=98python=E2=80=99 for =E2=80=98python3=E2=80=99 long ago. = You'd just be following their lead. > I'm asking that we put the onus on developers who really insist on > using nmbug with python 2.7 maintain their own local patch against > nmbug, rather than other developers either modifying their local > operating system in potentially disastrous ways (/usr/bin/python as > python3 would cause severe breakage for at least one python2-only > tool i rely on daily, sadly)=E2=80=A6 That Python-2-only tool should be using python2 in its shebang. This is exactly the sort of issue that PEP 394 was created to address. Once you patch that tool to follow PEP 394, you should have no problem adjusting your system to also follow PEP 394. > =E2=80=A6 or carrying their own local patch against nmbug. A shebang with =E2=80=98python=E2=80=99 should work with everyone (and it's= what PEP 394 recommends for scripts that work with both Python major versions). The only folks who would need a local patch would be folks with systems like your current plan that contain no =E2=80=98python=E2=80=99 com= mand at all. I see no upside to such systems, while I do see upsides to systems with just a =E2=80=98python2=E2=80=99 (and a =E2=80=98python=E2=80= =99 alias for it) or just a =E2=80=98python3=E2=80=99 (and a =E2=80=98python=E2=80=99 alias for it). > i'll drop this request now because i don't understand the origin of > the strength of your reaction, and already wish i'd spent the time > i've lost on it on something more productive :( I hope if you change > your mind you'll come back and recommend it here. I like nmbug and have put some time into it. But I'm not the notmuch maintainer, and as you point out, nmbug would still work for me with a python3 shebang. So if the maintainers want to switch to python3 it's no skin off my back. They can always wait and field requests from any python2-only users if/when those users file complaints (which may be never). Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEpgNNa8H/zemHkt2gprXBz9Wld7YFAlqB1I8ACgkQprXBz9Wl d7ZunRAApcjQN/f/wgG+6pEYYXuFmFkqtHOlqmI/TWHL7Dh+V5gdqoPEWW2c5hjN OT8nynYJAK8L/JA6d5kaMoqmDJjSGrJnFmnuQVhSw1QDFZCEAGaz4fwJuxGJMmo0 TEWf0RUwG/qo+1nP3mJ8EwyGpwq66rOO6c+LW6Z12zwrS3W1WG5d2Gn5jwdiRW86 mOnefhoWQZY2AZwR4qTgUUUeYzzap/IGv7P1MeNRfKuHj3MGfZX82cT9c2/GWIZB mUhPBfwzoaKJLcNbhmc76dBiZSsD2XuTpjbixXTRJk0toC/Z6bYXRT3jc0BXXBq7 D9UGV02RYT2R6WGiZEioKYeQJEeQjMzKhWhYL4Z15nXEnjo+FKp4X3g+sPIkAjXu 5E2tpR4m4KWyIO0CYCjzD4qPMcepMv4bEoXNIZnybMwV4g3/Ko67OADyuUYSo0xg my43W3CF336hwbbZDigU6ZtxiC6+t0gIWj31Ir8TuI7u1s/AgB8K8n1Ooq8Zgdzo IWIX6ycpcO8FYhJWvBez1t4tQ4CTQyK1Oam3Pis+GPakRJDtSjaQgzPmKVMpi1Zi Q5dKYXAF+kBUTm0xGE583aVxX0attItXUrYEiC3Gmb9kotfVZiSeKNpD2VnRKAp9 /bEMYYALyDOt/RlTEIL0Za3c5tvWRvim4+GiDcLzhSe2hIGELM4= =yY/f -----END PGP SIGNATURE----- --huq684BweRXVnRxX--