Skip to content

Commit

Permalink
small makefile update for python
Browse files Browse the repository at this point in the history
  • Loading branch information
eavanvalkenburg committed Nov 29, 2024
1 parent b9263bb commit 0e8c457
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ install:
make install-sk
make install-pre-commit

UV_VERSION = $(shell uv --version 2> /dev/null)
UV_VERSION := $(shell command -v uv 2> /dev/null)
install-uv:
# Check if uv is installed
ifdef UV_VERSION
echo "uv found $(UV_VERSION)"
echo "running uv update"
uv self update
else
ifndef UV_VERSION
echo "uv could not be found"
echo "Installing uv"
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "uv installed"
echo "Please restart your shell."
exit 1
else
echo "uv found $(UV_VERSION)"
echo "running uv update"
uv self update
endif

.ONESHELL:
Expand Down

0 comments on commit 0e8c457

Please sign in to comment.