Skip to content

Commit 8d647d4

Browse files
committed
internal: change uv venv handling
1 parent 28d30fa commit 8d647d4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ else
3131
PLONE_VERSION := 6.1.4
3232
endif
3333

34+
ifdef CI
35+
UV_VENV_ARGS :=
36+
else
37+
UV_VENV_ARGS := --python=3.13
38+
endif
39+
3440
VENV_FOLDER=$(BACKEND_FOLDER)/.venv
3541
export VIRTUAL_ENV=$(VENV_FOLDER)
3642
BIN_FOLDER=$(VENV_FOLDER)/bin
@@ -54,7 +60,7 @@ requirements-mxdev.txt: pyproject.toml mx.ini ## Generate constraints file
5460

5561
$(VENV_FOLDER): requirements-mxdev.txt ## Install dependencies
5662
@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
5864
@uv pip install -r requirements-mxdev.txt
5965

6066
.PHONY: sync

0 commit comments

Comments
 (0)