Skip to content

Commit

Permalink
#1149 install packages from local cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Kuker committed Apr 28, 2023
1 parent 57fa874 commit 120146a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/web/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 120146a

Please sign in to comment.