@@ -236,7 +236,7 @@ endif
236236
237237# Determine the package installer with non-interactive flags
238238ifeq ("$(PYTHON_PACKAGE_INSTALLER ) ","uv")
239- PYTHON_PACKAGE_COMMAND =uv pip --quiet -- no-progress
239+ PYTHON_PACKAGE_COMMAND =uv pip --no-progress
240240else
241241PYTHON_PACKAGE_COMMAND =$(MXENV_PYTHON ) -m pip
242242endif
@@ -249,6 +249,10 @@ UV_AVAILABLE:=false
249249endif
250250
251251# Determine installation strategy
252+ # depending on the PYTHON_PACKAGE_INSTALLER and UV_AVAILABLE
253+ # - both vars can be false or
254+ # - one of them can be true,
255+ # - but never boths.
252256USE_GLOBAL_UV: =$(shell [[ "$(PYTHON_PACKAGE_INSTALLER ) " == "uv" && "$(UV_AVAILABLE ) " == "true" ]] && echo "true" || echo "false")
253257USE_LOCAL_UV: =$(shell [[ "$(PYTHON_PACKAGE_INSTALLER ) " == "uv" && "$(UV_AVAILABLE ) " == "false" ]] && echo "true" || echo "false")
254258
@@ -284,7 +288,7 @@ ifeq ("$(VENV_ENABLED)", "true")
284288ifeq ("$(VENV_CREATE ) ", "true")
285289ifeq ("$(USE_GLOBAL_UV ) ","true")
286290 @echo "Setup Python Virtual Environment using global uv at '$(VENV_FOLDER)'"
287- @uv venv --quiet --no-progress -p $(UV_PYTHON) --seed $(VENV_FOLDER)
291+ @uv venv --allow-existing --no-progress -p $(UV_PYTHON) --seed $(VENV_FOLDER)
288292else
289293 @echo "Setup Python Virtual Environment using module 'venv' at '$(VENV_FOLDER)'"
290294 @$(PRIMARY_PYTHON) -m venv $(VENV_FOLDER)
0 commit comments