未验证 提交 cd9fc4a2 编写于 作者: H huzhiqiang 提交者: GitHub

[python][build_strategy]add `--python_exectuable` option in build.sh appoint python version (#3443)

上级 d1c23a0c
...@@ -32,6 +32,7 @@ APU_DDK_ROOT="$(pwd)/apu_sdk_lib/" ...@@ -32,6 +32,7 @@ APU_DDK_ROOT="$(pwd)/apu_sdk_lib/"
BUILD_RKNPU=OFF BUILD_RKNPU=OFF
RKNPU_DDK_ROOT="$(pwd)/rknpu/" RKNPU_DDK_ROOT="$(pwd)/rknpu/"
LITE_WITH_ARM_LANG=OFF LITE_WITH_ARM_LANG=OFF
PYTHON_EXECUTABLE_OPTION=""
readonly THIRDPARTY_TAR=https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-05b862.tar.gz readonly THIRDPARTY_TAR=https://paddle-inference-dist.bj.bcebos.com/PaddleLite/third-party-05b862.tar.gz
...@@ -387,7 +388,8 @@ function make_x86 { ...@@ -387,7 +388,8 @@ function make_x86 {
-DLITE_WITH_XPU=$BUILD_XPU \ -DLITE_WITH_XPU=$BUILD_XPU \
-DLITE_WITH_XTCL=$BUILD_XTCL \ -DLITE_WITH_XTCL=$BUILD_XTCL \
-DXPU_SDK_ROOT=$XPU_SDK_ROOT \ -DXPU_SDK_ROOT=$XPU_SDK_ROOT \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release \
$PYTHON_EXECUTABLE_OPTION
make publish_inference -j$NUM_PROC make publish_inference -j$NUM_PROC
cd - cd -
...@@ -481,7 +483,7 @@ function main { ...@@ -481,7 +483,7 @@ function main {
--build_dir=*) --build_dir=*)
BUILD_DIR="${i#*=}" BUILD_DIR="${i#*=}"
shift shift
;; ;;
--opt_model_dir=*) --opt_model_dir=*)
OPTMODEL_DIR="${i#*=}" OPTMODEL_DIR="${i#*=}"
shift shift
...@@ -514,6 +516,10 @@ function main { ...@@ -514,6 +516,10 @@ function main {
XPU_SDK_ROOT="${i#*=}" XPU_SDK_ROOT="${i#*=}"
shift shift
;; ;;
--python_executable=*)
PYTHON_EXECUTABLE_OPTION="-DPYTHON_EXECUTABLE=${i#*=}"
shift
;;
--build_apu=*) --build_apu=*)
BUILD_APU="${i#*=}" BUILD_APU="${i#*=}"
shift shift
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册