This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new d8e401cfba [Chore](script) support custom python version on build script (#11954) d8e401cfba is described below commit d8e401cfba460c149e7834ab675381928eca3a48 Author: Pxl <pxl...@qq.com> AuthorDate: Wed Aug 24 14:31:05 2022 +0800 [Chore](script) support custom python version on build script (#11954) --- env.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/env.sh b/env.sh index 30c9d977f2..6bc240aa83 100755 --- a/env.sh +++ b/env.sh @@ -45,13 +45,15 @@ if [[ -z "${DORIS_THIRDPARTY}" ]]; then fi # check python -export PYTHON='python' +if [[ -z "${DORIS_BUILD_PYTHON_VERSION}" ]]; then + DORIS_BUILD_PYTHON_VERSION="python" +fi + +export PYTHON="${DORIS_BUILD_PYTHON_VERSION}" + if ! ${PYTHON} --version; then - export PYTHON=python2.7 - if ! ${PYTHON} --version; then - echo "Error: python is not found" - exit 1 - fi + echo "Error: ${PYTHON} is not found, maybe you should set DORIS_BUILD_PYTHON_VERSION." + exit 1 fi if [[ -z "${DORIS_TOOLCHAIN}" ]]; then --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org