From 414003950dfd8d951bbf5a130f9aae354dfda91c Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Tue, 17 Sep 2024 07:40:49 -0400 Subject: [PATCH] Add --no-user For those people who have user=true in their pip.conf or PIP_USER=true in their environment. Credit to @larseggert for finding this one. --- venv.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/venv.mk b/venv.mk index c82185ae..467d6756 100644 --- a/venv.mk +++ b/venv.mk @@ -226,14 +226,14 @@ endif $(VENV): $(PY) -m venv $(VENVDIR) - "$(VENV)/python" -m pip install $(no-cache-dir) --upgrade pip setuptools wheel + "$(VENV)/python" -m pip install --no-user $(no-cache-dir) --upgrade pip setuptools wheel $(VENV)/$(MARKER): $(VENVDEPENDS) | $(VENV) ifneq ($(strip $(REQUIREMENTS_TXT)),) - "$(VENV)/pip" install $(no-cache-dir) $(foreach path,$(REQUIREMENTS_TXT),-r $(path)) + "$(VENV)/python" -m pip install --no-user $(no-cache-dir) $(foreach path,$(REQUIREMENTS_TXT),-r $(path)) endif ifneq ($(strip $(SETUP_PY)),) - "$(VENV)/pip" install $(no-cache-dir) $(foreach path,$(SETUP_PY),-e $(dir $(path))) + "$(VENV)/python" -m pip install --no-user $(no-cache-dir) $(foreach path,$(SETUP_PY),-e $(dir $(path))) endif $(call touch,$(VENV)/$(MARKER)) @@ -270,5 +270,5 @@ $(VENV)/%: $(VENV)/%$(EXE) ; endif $(VENV)/%$(EXE): $(VENV)/$(MARKER) - "$(VENV)/pip" install $(no-cache-dir) --upgrade $* + "$(VENV)/python" -m pip install --no-user $(no-cache-dir) --upgrade $* $(call touch,$@)