[Git][NTPsec/ntpsec][master] Add a warning if PYTHONPATH is not set.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Nov 8 04:24:18 UTC 2016

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

13c03e4d by Eric S. Raymond at 2016-11-07T23:24:06-05:00
Add a warning if PYTHONPATH is not set.

- - - - -

1 changed file:

- wscript


--- a/wscript
+++ b/wscript
@@ -130,12 +130,15 @@ def linkmaker(ctx):
     # Also, they need to be able to see the Python extension
     # module built in libntp.
     if ctx.cmd == "build":
-	print("Making in-tree links...") 
+	print("Making in-tree links...")
 	bldnode = ctx.bldnode.abspath()
 	srcnode = ctx.srcnode.abspath()
 	for d in ("ntpq", "ntpdig", "ntpstats", "ntpsweep", "ntptrace", "ntpwait"):
 		os.system("ln -sf %s/pylib %s/%s/ntp" % (bldnode, srcnode, d))
 	os.system("ln -sf %s/libntp/ntpc.so %s/pylib/ntpc.so " % (bldnode, bldnode))
+        if not "PYTHONPATH" in os.environ:
+            print("--- PYTHONPATH is not set, "
+                   "loading the Python ntp library may be troublesome ---")
 def build(ctx):
 	ctx.load('waf', tooldir='wafhelpers/')

View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/13c03e4dc537d09ed7440ba2025a90497fd84401
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161108/f0c80d6d/attachment.html>

More information about the vc mailing list