From e2a287c24f652771db49118ba853228c18aab460 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Mon, 18 May 2020 19:15:19 +0800 Subject: [PATCH] [Python] change python version of python lib (#3652) --- lite/tools/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lite/tools/build.sh b/lite/tools/build.sh index 02c1bb5e36..756d392a91 100755 --- a/lite/tools/build.sh +++ b/lite/tools/build.sh @@ -383,8 +383,8 @@ function make_x86 { -DLITE_WITH_XTCL=$BUILD_XTCL \ -DXPU_SDK_ROOT=$XPU_SDK_ROOT \ -DCMAKE_BUILD_TYPE=Release \ + -DPY_VERSION=$PY_VERSION \ $PYTHON_EXECUTABLE_OPTION - make publish_inference -j$NUM_PROC cd - } @@ -518,6 +518,10 @@ function main { PYTHON_EXECUTABLE_OPTION="-DPYTHON_EXECUTABLE=${i#*=}" shift ;; + --python_version=*) + PY_VERSION="${i#*=}" + shift + ;; --build_apu=*) BUILD_APU="${i#*=}" shift -- GitLab