From 85dda6667247230b68633281f6c46d46a22966bd Mon Sep 17 00:00:00 2001 From: mikigo Date: Wed, 1 Nov 2023 10:00:36 +0800 Subject: [PATCH] fix: pip update Description: Log: --- env.sh | 4 +++- env_dev.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/env.sh b/env.sh index 4b6373dd..55e603ad 100644 --- a/env.sh +++ b/env.sh @@ -66,6 +66,7 @@ if [ "${env_retry}" = "true" ]; then fi echo -e "${flag_feel}安装 pip 包\n" +sudo pip3 install -U pip > /tmp/env.log 2>&1 sudo pip3 config set global.timeout 10000 > /tmp/env.log 2>&1 sudo pip3 config set global.index-url ${pypi_mirror} > /tmp/env.log 2>&1 sudo pip3 config set global.extra-index-url https://it.uniontech.com/nexus/repository/pypi-public/simple @@ -164,7 +165,8 @@ if [ "${requirements}" != "" ]; then done fi -pipenv run pip install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 +pipenv run pip install -U auto_uos --extra-index-url ${pypi_mirror} \ +-i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 check_status auto_uos pip_show=$(pipenv run pip show auto_uos | grep Location) public_location=$(echo "${pip_show}" | cut -d ":" -f2 | python3 -c "s=input();print(s.strip())") diff --git a/env_dev.sh b/env_dev.sh index f293fee4..3f632f18 100755 --- a/env_dev.sh +++ b/env_dev.sh @@ -86,7 +86,7 @@ if [ "${ENV_CUT_FLAG}" = "cut" ]; then ) fi echo -e "${flag_feel}安装 pip 包\n" - +sudo pip3 install -U pip > /tmp/env.log 2>&1 sudo pip3 config set global.timeout 10000 > /tmp/env.log 2>&1 sudo pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple > /tmp/env.log 2>&1 sudo pip3 config set global.extra-index-url https://it.uniontech.com/nexus/repository/pypi-public/simple @@ -111,7 +111,8 @@ if [ "${requirements}" != "" ]; then done fi -sudo pip3 install -U auto_uos --extra-index-url ${pypi_mirror} -i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 +sudo pip3 install -U auto_uos --extra-index-url ${pypi_mirror} \ +-i http://10.20.52.221:8081 --trusted-host=10.20.52.221 > /tmp/env.log 2>&1 check_status auto_uos pip_show=$(pip3 show auto_uos | grep Location) public_location=$(echo "${pip_show}" | cut -d ":" -f2 | python3 -c "s=input();print(s.strip())")