diff --git a/build.sh b/build.sh index 4e4098559..b7de6980a 100644 --- a/build.sh +++ b/build.sh @@ -166,7 +166,7 @@ function build_and_install() { echo -e "${BLUE}[install]${NONE} installing fastdeploy..." cd $DIST_DIR - find . -name "fastdeploy*.whl" | xargs ${python} -m pip install + ${python} -m pip install ./dist/fastdeploy*.whl --force-reinstall --no-cache-dir if [ $? -ne 0 ]; then cd .. echo -e "${RED}[FAIL]${NONE} install fastdeploy wheel failed" @@ -228,9 +228,6 @@ if [ "$BUILD_WHEEL" -eq 1 ]; then ${BLUE}fastdeploy branch:${NONE} $EFFLLM_BRANCH ($EFFLLM_COMMIT)\n" echo -e "${GREEN}wheel saved under${NONE} ${RED}${BOLD}./dist${NONE}" - - # install wheel - ${python} -m pip install ./dist/fastdeploy*.whl echo -e "${GREEN}wheel install success${NONE}\n" trap : 0