cambyzju commented on code in PR #11954:
URL: https://github.com/apache/doris/pull/11954#discussion_r952331031


##########
env.sh:
##########
@@ -45,7 +45,12 @@ 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

Review Comment:
   If python version already setted by user, I think we should better not try 
`python2.7` again.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to