We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28d30fa commit 8d647d4Copy full SHA for 8d647d4
1 file changed
Makefile
@@ -31,6 +31,12 @@ else
31
PLONE_VERSION := 6.1.4
32
endif
33
34
+ifdef CI
35
+UV_VENV_ARGS :=
36
+else
37
+UV_VENV_ARGS := --python=3.13
38
+endif
39
+
40
VENV_FOLDER=$(BACKEND_FOLDER)/.venv
41
export VIRTUAL_ENV=$(VENV_FOLDER)
42
BIN_FOLDER=$(VENV_FOLDER)/bin
@@ -54,7 +60,7 @@ requirements-mxdev.txt: pyproject.toml mx.ini ## Generate constraints file
54
60
55
61
$(VENV_FOLDER): requirements-mxdev.txt ## Install dependencies
56
62
@echo "$(GREEN)==> Install environment$(RESET)"
57
- @uv venv $(VENV_FOLDER) --clear
63
+ @if [[ -d "$(VENV_FOLDER)" ]]; then echo "$(YELLOW)==> Environment already exists at $(VENV_FOLDER)$(RESET)"; else uv venv $(UV_VENV_ARGS) $(VENV_FOLDER); fi
58
64
@uv pip install -r requirements-mxdev.txt
59
65
66
.PHONY: sync
0 commit comments