Skip to content

Commit 7930dff

Browse files
authored
build: use uv pip when available (#218)
1 parent 6821baa commit 7930dff

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ CURRENT_YEAR ?= $(shell date +%Y)
1111
VERSION ?= $(shell make --silent -C ../ version | tail -n 1)
1212
ENV ?= dev
1313

14-
1514
# Determine Netlify arguments from environment
1615
ifeq ($(ENV), prod)
1716
NETLIFY_ARGS := --prod
1817
else
1918
NETLIFY_ARGS :=
2019
endif
2120

21+
# Determine if `uv` is available
22+
ifneq ($(shell command -v uv 2>/dev/null),)
23+
PIP := uv pip
24+
else
25+
PIP := pip3
26+
endif
2227

2328
.PHONY: all \
2429
api \

integration/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ CONNECT_IMAGE ?= rstudio/rstudio-connect
3939
DOCKER_COMPOSE ?= docker compose
4040
PYTHON ?= python3
4141

42+
# Determine if `uv` is available
43+
ifneq ($(shell command -v uv 2>/dev/null),)
44+
PIP := uv pip
45+
else
46+
PIP := pip3
47+
endif
48+
4249
clean:
4350
rm -rf logs reports
4451
find . -type d -empty -delete

0 commit comments

Comments
 (0)