[Git][NTPsec/ntpsec][master] Set pyext feature and it will set the CPPFLAGS/LDFLAGS for us...

Eric S. Raymond gitlab at mg.gitlab.com
Sun Oct 23 13:14:28 UTC 2016


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


Commits:
c04d5032 by Matt Selsky at 2016-10-23T00:59:44-04:00
Set pyext feature and it will set the CPPFLAGS/LDFLAGS for us...

and we won't need to hardcode the python include path

- - - - -


1 changed file:

- libntp/wscript


Changes:

=====================================
libntp/wscript
=====================================
--- a/libntp/wscript
+++ b/libntp/wscript
@@ -72,12 +72,10 @@ def build(ctx):
 		includes	= includes,
 	)
 
-	pyversion = ".".join([str(x) for x in sys.version_info[:2]])
-
 	# Loadable Python extension
 	ctx(
 		target		= "ntpc",
-		features	= "c cshlib bld_include src_include",
+		features	= "c cshlib bld_include src_include pyext",
 		source		= ["pymodule.c"] + libntp_source_sharable,
-		includes	= includes + ["/usr/include/python" + pyversion],
+		includes	= includes,
 	)



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


More information about the vc mailing list