From 2573462792436744d6bc6c8bcdfea8568358dbd3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 5 Jan 2021 23:19:05 +0800 Subject: [PATCH] Some simplification, but it runs venv install way too often --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6043a7c766..c9867dae65 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ VENV_DIR := .pyenv-$(shell uname) PYTHON_BIN := $(VENV_DIR)/bin/python PYTHON := . $(VENV_DIR)/bin/activate; python -PIP := $(PYTHON) -m pip PYTEST := $(PYTHON) -m pytest MAKO_RENDER := etc/bin/mako-render @@ -69,7 +68,7 @@ $(VENV_BIN): $(PYTHON_BIN): $(VENV_BIN) requirements.txt $(VENV_BIN) -p python3.8 $(VENV_DIR) - $(PIP) install -r requirements.txt + $@ -m pip install -r requirements.txt $(MAKO_RENDER): $(PYTHON_BIN) $(wildcard $(MAKO_LIB_DIR)/*)