Skip to content

Commit

Permalink
🐛 Allow uv to be managed outside of .local/cargo/bin (#3348)
Browse files Browse the repository at this point in the history
* 🐛 Allow `uv` to be managed outside of `.local/cargo/bin`

* hotfix uv installation

---------

Co-authored-by: Marigold <[email protected]>
  • Loading branch information
larsyencken and Marigold authored Oct 1, 2024
1 parent b236224 commit 78937b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ test-default: check-formatting check-linting check-typing unittest
install-uv-default:
@if ! command -v uv >/dev/null 2>&1; then \
echo '==> UV not found. Installing...'; \
echo $$HOME; \
curl -LsSf https://astral.sh/uv/install.sh | sh && . $$HOME/.cargo/env; \
curl -LsSf https://astral.sh/uv/install.sh | sh; \
fi

.venv-default: install-uv .sanity-check
Expand All @@ -41,7 +40,7 @@ install-uv-default:
echo '==> Using Python version $(PYTHON_VERSION)'; \
export UV_PYTHON=$(PYTHON_VERSION); \
fi
uv sync --all-extras
[ -f $$HOME/.cargo/env ] && . $$HOME/.cargo/env || true && uv sync --all-extras

check-default:
@echo '==> Lint & Format & Typecheck changed files'
Expand Down

0 comments on commit 78937b2

Please sign in to comment.