提交 9a35c52c 编写于 作者: L LiFeng

clibcni: replace python to python3

Signed-off-by: NLiFeng <lifeng68@huawei.com>
上级 2b6d499f
......@@ -13,6 +13,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: gcc
BuildRequires: cmake
BuildRequires: yajl yajl-devel
BuildRequires: python3
Requires: yajl
......
......@@ -10,9 +10,9 @@ else()
endif()
endmacro()
#check python
find_program(CMD_PYTHON python)
_CHECK(CMD_PYTHON "CMD_PYTHON-NOTFOUND" "python")
#check python3
find_program(CMD_PYTHON python3)
_CHECK(CMD_PYTHON "CMD_PYTHON-NOTFOUND" "python3")
# check libyajl
pkg_check_modules(PC_LIBYAJL REQUIRED "yajl>=2")
......
set(cmdpath python)
set(cmdpath python3)
set(pysrcpath ${CMAKE_CURRENT_SOURCE_DIR}/src/generate.py)
set(schemapath ${CMAKE_CURRENT_SOURCE_DIR}/schema)
set(outputpath ${CMAKE_BINARY_DIR}/json)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册