Update lib.sh

pull/852/head
dami 2 months ago
parent 4f74a770af
commit 555c326b0c
  1. 8
      scripts/lib.sh

@ -66,7 +66,7 @@ fi
PIPSRC="https://pypi.python.org/simple"
if [ "$LOCAL_ADDR" != "common" ];then
PIPSRC="https://pypi.tuna.tsinghua.edu.cn/simple/"
PIPSRC="https://pypi.tuna.tsinghua.edu.cn/simple"
fi
echo "local:${LOCAL_ADDR}"
@ -97,7 +97,11 @@ fi
pip3 install --upgrade pip -i $PIPSRC
pip3 install --upgrade setuptools -i $PIPSRC
# --no-cache-dir
# repeated attempts
if [ "$LOCAL_ADDR" != "common" ];then
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt
fi
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt -i $PIPSRC

Loading…
Cancel
Save