mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-10 17:19:48 +00:00
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
This commit is contained in:
@@ -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:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
"""
|
||||
Generate function define macros.
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user