[dpdk-web] [PATCH 1/3] local: allow to force Python 2

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Feb 10 11:05:04 CET 2016


The default Python may be version 3 which is not compatible with
BaseHTTPServer import (integrated as http.server in 3.x).
The workaround is to specify PYTHON2=python2 on the command line.

Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 2a7602a..56dc512 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+PYTHON2 = python
 
 local:
-	python scripts/serve_local.py
+	$(PYTHON2) scripts/serve_local.py
-- 
2.7.0



More information about the web mailing list