From d86e81e12bf6eb4845acd6cc632f50479af8808f Mon Sep 17 00:00:00 2001 From: Stepan Pressl Date: Mon, 14 Sep 2026 01:51:25 +0200 Subject: [PATCH] fix: install uv if not present --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 53e6b77..55e9108 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: install dev build-deps test lint format format-check check build clean run run-devmode help venv lock VENV_DIR ?= .venv -UV ?= uv +UV := $(HOME)/.local/bin/uv help: @echo "ShellGame - Makefile commands:" @@ -18,7 +18,11 @@ help: @echo " make run - Run ShellGame (normal mode; auto-launches wrapped subshell if needed)" @echo " make run-devmode - Run ShellGame with --devmode (auto-launches wrapped subshell if needed)" -$(VENV_DIR): +$(UV): + @echo "Downloading uv" + @curl -LsSf https://astral.sh/uv/install.sh | sh + +$(VENV_DIR): $(UV) $(UV) venv $(VENV_DIR) --quiet venv: | $(VENV_DIR) @@ -32,7 +36,7 @@ dev: venv build-deps: venv $(UV) sync --extra build -lock: +lock: $(UV) $(UV) lock test: dev