Yo Eric! On Wed, 27 Sep 2017 17:36:56 -0400 "Eric S. Raymond" <e...@thyrsus.com> wrote:
> Gary E. Miller via devel <devel@ntpsec.org>: > > Yo Eric! > > > > On Wed, 27 Sep 2017 16:43:54 -0400 > > "Eric S. Raymond" <e...@thyrsus.com> wrote: > > > > > Gary E. Miller via devel <devel@ntpsec.org>: > > > > Except for your upcoming solution to the PYTHONPATH issue. > > > > > > Explain "the PYTHONPATH issue", please. > > > > I just installed git head. No PYTHONPATH: > > > > spidey ntpsec # ntpq -up > > ntpq: can't find Python NTP library. > > No module named 'ntp' > > What is on your sys.path? On a simple RasPi gentoo 3.4: pi3 etc # python Python 3.4.5 (default, May 3 2017, 05:22:30) [GCC 5.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/usr/local/lib/python3.4/site-packages/ntp', '/usr/lib/python34.zip', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-linux', '/usr/lib/python3.4/lib-dynload', '/usr/lib/python3.4/site-packages'] > Looks like waf is installing to the wrong > place. It installed in the right place: pi3 etc # ls /usr/local/lib/python3.4/site-packages/ ntp > You should do an install with --destdir=/tmp/ntp to see what kkknstallation path it's generating. Works perfectly: pi3 ntpsec # ls /tmp/ntp/usr/local/lib/python3.4/site-packages/ntp/ agentx.py __init__.py ntpc.cpython-34m.so __pycache__ util.py control.py magic.py packet.py statfiles.py version.py > > This is why all the commits that ripped out PYTHONPATH stuff need > > to be reverted. > > Please go have that argument with Fred, not me. We'll do whatever > fixes you two can agree on. We all already agreed we preferred PYTHONPATH to go away, but the replacement needs to actually work. I mainly brought up PYTHONPATH as it shows what remains to be fixed, and how we used to handle the issue. We can always go back to the old soution that worked, until we find a better way. Right now, the NTPsec install is broken, and needs a fixed. What we see that pip does, is edit the sys.path to include the location an egg is installed. That looks to me like a method to go forward with. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@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
pgpcXTZFvcny9.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel