From 162f8fe2e3fd9a273e70ba6d1ff4f98e731c117e Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Fri, 30 Dec 2022 10:52:09 +0800 Subject: [PATCH] fix_mac_build_problem (#49435) * fix_mac_build_problem * fix_mac_build_problem * fix_mac_build_problem --- paddle/scripts/paddle_build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index fe0440700c..8afa300b57 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 -- GitLab