diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index c2da0215c83d4c3e0ec6666f4ee68f610d11312b..bf76e6dab5ae512ee483c6e5869e77a009b129f1 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -2301,7 +2301,12 @@ function build_document_preview() { # origin name: example function exec_samplecode_test() { - pip install ${PADDLE_ROOT}/build/python/dist/*.whl + if [ -d "${PADDLE_ROOT}/build/pr_whl" ];then + pip install ${PADDLE_ROOT}/build/pr_whl/*.whl + else + pip install ${PADDLE_ROOT}/build/python/dist/*.whl + fi + paddle version cd ${PADDLE_ROOT}/tools if [ "$1" = "cpu" ] ; then