From f1d6bc56a2bd5d8445486998de2476e70b588dfe Mon Sep 17 00:00:00 2001 From: gnehzuil Date: Mon, 17 Dec 2012 11:29:52 +0800 Subject: [PATCH] Avoid using python3 as default python interpreter. Now if the user wants to build libsearpc when he/she has installed python3 as default python interpreter. He/She need to build program as following steps: 1. ./configure PYTHON=/usr/bin/python2.x 2. make 3. make install --- demo/Makefile.am | 2 +- lib/searpc-codegen.py | 2 +- tests/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/Makefile.am b/demo/Makefile.am index 0a79000..7b8e02b 100644 --- a/demo/Makefile.am +++ b/demo/Makefile.am @@ -31,7 +31,7 @@ gensource: ${generated_sources} ${generated_sources}: ${top_srcdir}/demo/rpc_table.py @echo "[libsearpc]: generating rpc header files" - python ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/demo/rpc_table.py + @PYTHON@ ${top_srcdir}/lib/searpc-codegen.py ${top_srcdir}/demo/rpc_table.py @echo "[libsearpc]: done" clean-local: diff --git a/lib/searpc-codegen.py b/lib/searpc-codegen.py index 35cc859..be0e491 100644 --- a/lib/searpc-codegen.py +++ b/lib/searpc-codegen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 """ Generate function define macros. diff --git a/tests/Makefile.am b/tests/Makefile.am index 5aa52e0..686d0f1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,7 +23,7 @@ gensource: ${generated_sources} ${generated_sources}: $(top_srcdir)/tests/rpc_table.py @echo "[libsearpc]: generating rpc header files" - python ${top_srcdir}/lib/searpc-codegen.py $(top_srcdir)/tests/rpc_table.py + @PYTHON@ ${top_srcdir}/lib/searpc-codegen.py $(top_srcdir)/tests/rpc_table.py @echo "[libsearpc]: done" clean-local: