Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: small makefile update for python #9847

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading