From bab6860e49c84546522efdc9c9ce3ea2ef34031f Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 12 Dec 2019 09:30:09 +0100 Subject: [PATCH] Quieter and faster install of dependencies. (#1053) A useless "-U" was remaining in a pip install, leading to pip hitting internet every time for nothing. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f72132e6..0eff98a5 100644 --- a/Makefile +++ b/Makefile @@ -85,8 +85,11 @@ setup: venv .PHONY: venv venv: - if [ ! -d $(VENV) ]; then $(PYTHON) -m venv --prompt python-docs-fr $(VENV); fi - $(VENV)/bin/pip install -q -U -r requirements.txt + @if [ ! -d $(VENV) ]; then $(PYTHON) -m venv --prompt python-docs-fr $(VENV); fi + @$(VENV)/bin/pip install -q -r requirements.txt 2> $(VENV)/pip-install.log + @if grep -q 'pip install --upgrade pip' $(VENV)/pip-install.log; then \ + $(VENV)/bin/pip install -q --upgrade pip; \ + fi .PHONY: serve @@ -114,7 +117,7 @@ SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$') DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS))) .PHONY: spell -spell: venv $(DESTS) +spell: venv $(DESTS) $(POSPELL_TMP_DIR)/%.po.out: %.po dict @echo "Checking $<..."