[Git][NTPsec/ntpsec][master] Change pre-requisites to indicate Python 2 must be at 2.6.6 or later.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Dec 8 10:44:11 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
8dba9cff by Eric S. Raymond at 2016-12-08T05:34:38-05:00
Change pre-requisites to indicate Python 2 must be at 2.6.6 or later.

This was brought on by GitLab Issue #198.  Under Python 2.6.4 waf
throws an AttributeException while trying to do subprocess control.
This problem is not known to arise on Centos 6, which also runs 2.6.

I've set the low bar to 2.6.6 rather than 2.6.5 from a dim memory
of having seen this problem (and this fix) years ago.

- - - - -


3 changed files:

- INSTALL
- devel/hacking.txt
- pylib/wscript


Changes:

=====================================
INSTALL
=====================================
--- a/INSTALL
+++ b/INSTALL
@@ -12,7 +12,7 @@ via getifaddrs(3) or some equivalent facility.
 There are some prerequisites.  Libraries need the binary installed
 to run and in addition, the development headers installed to build.
 
-Python 2.x, x >= 6, or Python 3.x, x >= 3::
+Python 2.x.y, x.y >= 6.6, or Python 3.x, x >= 3::
    Required to build, and for various scripts such as ntpviz (but see
    the guidance for packagers in devel/packaging.txt).  Our Python code
    has been written polyglot to also run with production versions of


=====================================
devel/hacking.txt
=====================================
--- a/devel/hacking.txt
+++ b/devel/hacking.txt
@@ -177,7 +177,7 @@ the compiler and toolchain have been modernized.
 
 == Python guidelines ==
 
-You may assume Python 2 at 2.6 or later, or Python 3 at 3.3 or later.
+You may assume Python 2 at 2.6.6 or later, or Python 3 at 3.3 or later.
 
 Please read https://www.python.org/dev/peps/pep-0008/[PEP 8] and use
 that style.  The only PEP 8 style rule we relax is that you may


=====================================
pylib/wscript
=====================================
--- a/pylib/wscript
+++ b/pylib/wscript
@@ -3,7 +3,7 @@ def options(opt):
 
 def configure(conf):
     conf.load('python')
-    conf.check_python_version((2, 6, 0))
+    conf.check_python_version((2, 6, 6))
     conf.check_python_headers()
 
 def build(ctx):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8dba9cff2bfd8d58a9320fdafbc42c2887df8574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161208/4415fa39/attachment.html>


More information about the vc mailing list