[Git][NTPsec/ntpsec][master] 2 commits: Checkpoint - this version of pylib/wscript works...

Eric S. Raymond gitlab at mg.gitlab.com
Sun Nov 6 11:28:55 UTC 2016


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


Commits:
8f116c40 by Eric S. Raymond at 2016-11-06T05:41:55-05:00
Checkpoint - this version of pylib/wscript works...

...but may be overcomplicated.

- - - - -
b2d670fd by Eric S. Raymond at 2016-11-06T06:28:39-05:00
More improvements in pylib/wscript

- - - - -


1 changed file:

- pylib/wscript


Changes:

=====================================
pylib/wscript
=====================================
--- a/pylib/wscript
+++ b/pylib/wscript
@@ -14,30 +14,24 @@ def build(ctx):
     target3 = ctx.srcnode.make_node('pylib/version.py')
 
     ctx(
-	before      = ['pyc', 'pyo'],
 	cwd         = srcnode,
-	rule        = '../wafhelpers/pythonize-header ${SRC} >${TGT}',
-	source      = "../include/ntp_control.h",
+	rule        = '${SRC} >${TGT}',
+	source      = ["../wafhelpers/pythonize-header", "../include/ntp_control.h"],
 	target      = target1,
-	install_path ='${PYTHONDIR}/ntp'
 	)
 
     ctx(
-	before      = ['pyc', 'pyo'],
 	cwd         = srcnode,
-	rule        = '../wafhelpers/pythonize-header ${SRC} >${TGT}',
-	source      = "../include/ntp.h",
+	rule        = '${SRC} >${TGT}',
+	source      = ["../wafhelpers/pythonize-header", "../include/ntp.h"],
 	target      = target2,
-	install_path ='${PYTHONDIR}/ntp'
 	)
 
     ctx(
-	before      = ['pyc', 'pyo'],
 	cwd         = srcnode,
-	rule        = 'VERSION=`cat ../VERSION` ../wafhelpers/autorevision.sh -o ../wafhelpers/.autorevision-cache -t python >${TGT}',
+	rule        = 'VERSION=`cat ${SRC}` ../wafhelpers/autorevision.sh -o ${TGT[1].abspath()} -t python >${TGT[0].name}',
 	source      = "../VERSION",
-	target      = [target3, '../wafhelpers/.autorevision-cache'],
-	install_path ='${PYTHONDIR}/ntp'
+	target      = [target3, '../wafhelpers/.autorevision-cache', '../wafhelpers/autorevision.sh'],
 	)
 
     ctx(



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/f1f3c153a869e040611499111e905caf4a4ca4bf...b2d670fd5315dfdac2672511c95a80579cd339cc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161106/d24544c7/attachment.html>


More information about the vc mailing list