提交 993beef3 编写于 作者: L LiFeng

lcr: replace python to python3

Signed-off-by: NLiFeng <lifeng68@huawei.com>
上级 209b86c6
...@@ -10,9 +10,9 @@ else() ...@@ -10,9 +10,9 @@ else()
endif() endif()
endmacro() endmacro()
#check python #check python3
find_program(CMD_PYTHON python) find_program(CMD_PYTHON python3)
_CHECK(CMD_PYTHON "CMD_PYTHON-NOTFOUND" "python") _CHECK(CMD_PYTHON "CMD_PYTHON-NOTFOUND" "python3")
# check liblxc # check liblxc
pkg_check_modules(PC_LIBLXC REQUIRED "lxc>=3") pkg_check_modules(PC_LIBLXC REQUIRED "lxc>=3")
......
...@@ -14,7 +14,7 @@ BuildRequires: cmake ...@@ -14,7 +14,7 @@ BuildRequires: cmake
BuildRequires: lxc BuildRequires: lxc
BuildRequires: lxc-devel BuildRequires: lxc-devel
BuildRequires: yajl yajl-devel BuildRequires: yajl yajl-devel
BuildRequires: python2 BuildRequires: python3
Requires: lxc Requires: lxc
ExclusiveArch: x86_64 aarch64 ExclusiveArch: x86_64 aarch64
......
project (JSONGenerator) project (JSONGenerator)
set(cmdpath python) set(cmdpath python3)
set(pysrcpath ${CMAKE_CURRENT_SOURCE_DIR}/src/generate.py) set(pysrcpath ${CMAKE_CURRENT_SOURCE_DIR}/src/generate.py)
set(schemapath ${CMAKE_CURRENT_SOURCE_DIR}/schema) set(schemapath ${CMAKE_CURRENT_SOURCE_DIR}/schema)
set(outputpath ${CMAKE_BINARY_DIR}/json) set(outputpath ${CMAKE_BINARY_DIR}/json)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册