Skip to content

Commit ef4b913

Browse files
Update makefile
1 parent 60c91ef commit ef4b913

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
UV := uv
22
PYTHON_VERSION := 3.11
33
UV_INSTALL_SCRIPT := https://astral.sh/uv/install.sh
4+
PATH := $(HOME)/.local/bin:$(PATH)
45

56
command_exists = $(shell command -v $(1) >/dev/null 2>&1 && echo true || echo false)
67

@@ -16,6 +17,10 @@ check-uv: ## Check and install uv if necessary
1617
else \
1718
echo "📦 uv is not installed. Installing uv..."; \
1819
curl -LsSf $(UV_INSTALL_SCRIPT) | sh; \
20+
fi; \
21+
if ! command -v $(UV) >/dev/null 2>&1; then \
22+
echo "❌ uv is not in your PATH. Please add the uv installation directory to your PATH environment variable."; \
23+
exit 1; \
1924
fi
2025

2126
.PHONY: install-python

0 commit comments

Comments
 (0)