diff --git a/build.sh b/build.sh index 527a5448bb4f7ff2bc0bc15473968389a28ed364..8d189952d91487b6e77b7e09a2050c619540f620 100644 --- a/build.sh +++ b/build.sh @@ -354,6 +354,6 @@ if [ "$BAZEL_COMMAND" == "build" ]; then fi if [ "$PACKAGE_ALL" == "true" ]; then - bash ${BASE_DIR}/scripts/package.sh -t ${BUILD_VERSION} + bash ${BASE_DIR}/scripts/package.sh -t ${BUILD_VERSION} --python_bin_path ${PYTHON3_BIN_PATH} fi cd - \ No newline at end of file diff --git a/scripts/package_yuanrong.sh b/scripts/package_yuanrong.sh index a743676527e71511572b323ad236091094da00a0..f416ce6049228ac46dd491d930014e5a24c6761f 100644 --- a/scripts/package_yuanrong.sh +++ b/scripts/package_yuanrong.sh @@ -22,12 +22,13 @@ BASE_DIR=$( . ${BASE_DIR}/package/utils.sh OUTPUT_DIR="${BASE_DIR}/../output" function parse_args () { - getopt_cmd=$(getopt -o t:h -l tag:,help -- "$@") + getopt_cmd=$(getopt -o t:h -l tag:,python_bin_path:,help -- "$@") [ $? -ne 0 ] && exit 1 eval set -- "$getopt_cmd" while true; do case "$1" in -h|--help) SHOW_HELP="true" && shift ;; + --python_bin_path) PYTHON_BIN_PATH=$2 && shift 2 ;; -t|--tag) TAG=$2 && shift 2 ;; --) shift && break ;; *) die "Invalid option: $1" && exit 1 ;;