diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index fe0440700c8b7de3bedc96b2f011d9ef7a82662c..8afa300b57ac5807bee4bfb4527ebc339b2f78a8 100644 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -3651,8 +3651,11 @@ function run_setup(){ # reset ccache zero stats for collect PR's actual hit rate ccache -z - - python setup.py $2;build_error=$? + if [ "${PYTHON_EXECUTABLE}" != "" ];then + ${PYTHON_EXECUTABLE} setup.py $2;build_error=$? + else + python setup.py $2;build_error=$? + fi # ci will collect ccache hit rate collect_ccache_hits