✘Python 2.7 broken

Gary E. Miller gem at rellim.com
Sun Dec 13 02:39:54 UTC 2020


Yo James!

Python always looks in the current directory, before looking in
PYTHONPATH or system paths.  So better to just run the tests where the
test ntp module is.

Less is more.


On Sat, 12 Dec 2020 18:35:13 -0800
James Browning via devel <devel at ntpsec.org> wrote:

> On Sat, Dec 12, 2020 at 6:16 PM Gary E. Miller via devel
> <devel at ntpsec.org> wrote:
> 
> > Yo James!
> >
> > On Sat, 12 Dec 2020 18:04:57 -0800
> > James Browning via devel <devel at ntpsec.org> wrote:
> >  
> > > It looks like a4c2c7921f144674402c2a3dbfc13a87b1ea3d1f can you
> > > confirm?  
> >
> > Confirmed.
> >  
> 
> The following patch clears it up on the machine I bisected on.
> 
> diff --git a/wafhelpers/bin_test.py b/wafhelpers/bin_test.py
> index 8501ef6fc..9c06b63fc 100644
> --- a/wafhelpers/bin_test.py
> +++ b/wafhelpers/bin_test.py
> @@ -105,7 +105,7 @@ def cmd_bin_test(ctx):
> 
>      if ctx.cmd == 'install':
>          pypath = destdir + ctx.env.PYTHONARCHDIR  # + os.sep + 'ntp'
> -        env = {'PYTHONPATH': pypath} if destdir != '/' else {}
> +        env = {'PYTHONPATH': pypath}
>          path = destdir + os.sep if destdir != '/' else '/'
>          spath = path + ctx.env.SBINDIR[1:] + os.sep
>          path = path + ctx.env.BINDIR[1:] + os.sep




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/20201212/3028f754/attachment.bin>


More information about the devel mailing list