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