#1149 install packages from local cache

This commit is contained in:
Tony Kuker 2023-04-28 02:49:54 +00:00
parent 57fa874d53
commit 120146a196
1 changed files with 4 additions and 3 deletions

View File

@ -59,8 +59,9 @@ if ! test -e venv; then
echo "Activating venv"
source venv/bin/activate
echo "Installing requirements.txt"
pip3 install wheel
pip3 install -r requirements.txt
pip3 install wheel --no-index --find-links=$HOME/.pip_cache
# Reference: https://pip.pypa.io/en/latest/user_guide/#installing-from-local-packages
pip3 install -r requirements.txt --no-index --find-links=$HOME/.pip_cache
if git rev-parse --is-inside-work-tree &> /dev/null; then
git rev-parse HEAD > current
@ -79,7 +80,7 @@ if [[ $? -eq 0 ]]; then
git rev-parse > current
elif [ "$(cat current)" != "$(git rev-parse HEAD)" ]; then
echo "New version detected, updating libraries from requirements.txt"
pip3 install -r requirements.txt
pip3 install -r requirements.txt --no-index --find-links=$HOME/.pip_cache
git rev-parse HEAD > current
fi
else