Fedora 28 - python warnings

Richard Laager rlaager at wiktel.com
Fri May 11 06:28:56 UTC 2018


On 05/10/2018 11:46 PM, Udo van den Heuvel via devel wrote:
> + ./waf configure --prefix=/usr --enable-early-droproot
> --refclock=nmea,generic --libdir=/usr/lib64
> --docdir=/usr/share/doc/ntpsec --enable-doc
> DEPRECATION WARNING: python2 invoked with /usr/bin/python.

Perhaps my experiences will be helpful to you...

In Debian, I explicitly invoke waf with python3:
python3 waf configure ...

Then I patch all the /usr/bin/env python to /usr/bin/python3 in these files:

attic/calc_tickadj/calc_tickadj
contrib/cpu-temp-log
contrib/smartctl-temp-log
contrib/temper-temp-log
wafhelpers/pythonize-header
devel/linkcheck
contrib/zone-temp-log
contrib/make-leap-seconds.py
contrib/ntpconfigtest
contrib/ntpheat
contrib/ntpheatusb
devel/python_paths.py
tests/pylib/jigs.py
tests/pylib/test_packet.py
tests/pylib/test_statfiles.py
tests/pylib/test_util.py
ntpclients/ntpdig.py
ntpclients/ntpkeygen.py
ntpclients/ntplogtemp.py
ntpclients/ntpmon.py
ntpclients/ntpq.py
ntpclients/ntpsnmpd.py
ntpclients/ntpsweep.py
ntpclients/ntptrace.py
ntpclients/ntpviz.py
ntpclients/ntpwait.py
pylib/agentx.py
tests/pylib/test_agentx_packet.py

On Debian, the gps python module is only built for Python2, so I patch
out the ntp.version code and use /usr/bin/python2 for:
ntpclients/ntploggps.py

-- 
Richard


More information about the devel mailing list