From 7c9ffec7f8c9c44a1332f4fd54da88150e64617c Mon Sep 17 00:00:00 2001 From: David Glick Date: Tue, 26 Nov 2024 12:44:16 -0300 Subject: [PATCH] Make sure uv installs into the right virtualenv --- backend_addon/{{ cookiecutter.__folder_name }}/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend_addon/{{ cookiecutter.__folder_name }}/Makefile b/backend_addon/{{ cookiecutter.__folder_name }}/Makefile index e309401..d5e9336 100644 --- a/backend_addon/{{ cookiecutter.__folder_name }}/Makefile +++ b/backend_addon/{{ cookiecutter.__folder_name }}/Makefile @@ -62,7 +62,7 @@ config: instance/etc/zope.ini build-dev: config ## Install Plone packages @echo "$(GREEN)==> Setup Build$(RESET)" $(BIN_FOLDER)/pipx run mxdev -c mx.ini - $(BIN_FOLDER)/uv pip install -r requirements-mxdev.txt + VIRTUAL_ENV=.venv $(BIN_FOLDER)/uv pip install -r requirements-mxdev.txt .PHONY: install install: build-dev ## Install Plone @@ -100,7 +100,7 @@ check: $(BIN_FOLDER)/tox ## Check and fix code base according to Plone standards # i18n $(BIN_FOLDER)/i18ndude: $(BIN_FOLDER)/pip @echo "$(GREEN)==> Install translation tools$(RESET)" - $(BIN_FOLDER)/uv pip install i18ndude + VIRTUAL_ENV=.venv $(BIN_FOLDER)/uv pip install i18ndude .PHONY: i18n i18n: $(BIN_FOLDER)/i18ndude ## Update locales