Skip to content

Commit 6ba2f54

Browse files
committed
add --force-reinstall --no-cache-dir when pip install fastdeploy*.whl
1 parent 9f4a65d commit 6ba2f54

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function build_and_install() {
166166

167167
echo -e "${BLUE}[install]${NONE} installing fastdeploy..."
168168
cd $DIST_DIR
169-
find . -name "fastdeploy*.whl" | xargs ${python} -m pip install
169+
${python} -m pip install ./dist/fastdeploy*.whl --force-reinstall --no-cache-dir
170170
if [ $? -ne 0 ]; then
171171
cd ..
172172
echo -e "${RED}[FAIL]${NONE} install fastdeploy wheel failed"
@@ -228,9 +228,6 @@ if [ "$BUILD_WHEEL" -eq 1 ]; then
228228
${BLUE}fastdeploy branch:${NONE} $EFFLLM_BRANCH ($EFFLLM_COMMIT)\n"
229229

230230
echo -e "${GREEN}wheel saved under${NONE} ${RED}${BOLD}./dist${NONE}"
231-
232-
# install wheel
233-
${python} -m pip install ./dist/fastdeploy*.whl
234231
echo -e "${GREEN}wheel install success${NONE}\n"
235232

236233
trap : 0

0 commit comments

Comments
 (0)