Python support policy

Gary E. Miller gem at rellim.com
Thu Sep 3 00:44:27 UTC 2020


Yo Richard!

On Wed, 2 Sep 2020 19:29:15 -0500
Richard Laager via devel <devel at ntpsec.org> wrote:

> Let me start over now that I've reviewed the specifics of the NTPsec
> scripts and build system again:
> 
> We are currently using "#!/usr/bin/env python" in all the scripts,

Which is what the PEP preferred, until the Python people gave up
fighting a certain unnamed distro's people.

> and
> waf uses the same. The minimum to do to drop Python 2 is:
> 
> 1. Change waf's shebang:
>      -#!/usr/bin/env python
>      +#!/usr/bin/env python3

Uh, no.  That breaks Gentoo eselect.  Many other distros prefer not
either.  You can't just look at the problem through the lens of your
distro.

> 2. Change the other scripts the same way.
> 
> 3. Update the docs and CI accordingly.

The last gpsd release made it a replaceable variable because every
distro wanted it different.

>   A. Change the Python shebangs to:
>        #!@PYTHON@

You realize that the POSIX doc says a pace after "#!", but so many do it
wrong they accept that variant.

> Option A is trivial. I could have that patch done in 10 minutes.

Which would mirror gpsd, and make many packagers happy.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20200902/2e69af2c/attachment.bin>


More information about the devel mailing list