libxenstat: use python detected by configure for python bindings
authorPeter Große <pegro@friiks.de>
Mon, 12 Jun 2017 23:05:20 +0000 (01:05 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 13 Jun 2017 13:39:31 +0000 (14:39 +0100)
Signed-off-by: Peter Große <pegro@friiks.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstat/libxenstat/Makefile

index 85cec63ebf1f291154b8684af0ce7cc71210c7af..08b0f351724f05795a26258a386d378f3790a709 100644 (file)
@@ -102,7 +102,7 @@ $(BINDINGS): $(SHLIB) $(SHLIB_LINKS) src/xenstat.h
 SWIG_FLAGS=-module xenstat -Isrc
 
 # Python bindings
-PYTHON_VERSION=2.3
+PYTHON_VERSION=$(PYTHON:python%=%)
 PYTHON_FLAGS=-I/usr/include/python$(PYTHON_VERSION) -lpython$(PYTHON_VERSION)
 $(PYMOD): $(PYSRC)
 $(PYSRC): bindings/swig/xenstat.i