Skip to content

Commit f3eeab8

Browse files
committed
build: don't require uv just to install the dev tooling
1 parent 6647640 commit f3eeab8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ sterile: clean ## Remove all non-controlled content, even if expensive.
5050
rm -rf .tox
5151
rm -f cheats.txt
5252

53+
# For installing development tooling, use uv if it's available, otherwise pip.
54+
HAS_UV := $(shell command -v uv 2>/dev/null)
55+
ifdef HAS_UV
56+
INSTALL := uv pip sync
57+
else
58+
INSTALL := python -m pip install -r
59+
endif
60+
5361
install: ## Install the developer tools
54-
uv pip sync requirements/dev.pip
62+
$(INSTALL) requirements/dev.pip
5563

5664

5765
##@ Tests and quality checks

0 commit comments

Comments
 (0)