forked from AFPy/python-docs-fr
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.
This commit is contained in:
parent
4355078142
commit
bab6860e49
9
Makefile
9
Makefile
|
@ -85,8 +85,11 @@ setup: venv
|
||||||
|
|
||||||
.PHONY: venv
|
.PHONY: venv
|
||||||
venv:
|
venv:
|
||||||
if [ ! -d $(VENV) ]; then $(PYTHON) -m venv --prompt python-docs-fr $(VENV); fi
|
@if [ ! -d $(VENV) ]; then $(PYTHON) -m venv --prompt python-docs-fr $(VENV); fi
|
||||||
$(VENV)/bin/pip install -q -U -r requirements.txt
|
@$(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
|
.PHONY: serve
|
||||||
|
@ -114,7 +117,7 @@ SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
|
||||||
DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))
|
DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))
|
||||||
|
|
||||||
.PHONY: spell
|
.PHONY: spell
|
||||||
spell: venv $(DESTS)
|
spell: venv $(DESTS)
|
||||||
|
|
||||||
$(POSPELL_TMP_DIR)/%.po.out: %.po dict
|
$(POSPELL_TMP_DIR)/%.po.out: %.po dict
|
||||||
@echo "Checking $<..."
|
@echo "Checking $<..."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user