Skip to content

Commit

Permalink
build: use uv pip when available (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein authored Jun 11, 2024
1 parent 6821baa commit 7930dff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ CURRENT_YEAR ?= $(shell date +%Y)
VERSION ?= $(shell make --silent -C ../ version | tail -n 1)
ENV ?= dev


# Determine Netlify arguments from environment
ifeq ($(ENV), prod)
NETLIFY_ARGS := --prod
else
NETLIFY_ARGS :=
endif

# Determine if `uv` is available
ifneq ($(shell command -v uv 2>/dev/null),)
PIP := uv pip
else
PIP := pip3
endif

.PHONY: all \
api \
Expand Down
7 changes: 7 additions & 0 deletions integration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ CONNECT_IMAGE ?= rstudio/rstudio-connect
DOCKER_COMPOSE ?= docker compose
PYTHON ?= python3

# Determine if `uv` is available
ifneq ($(shell command -v uv 2>/dev/null),)
PIP := uv pip
else
PIP := pip3
endif

clean:
rm -rf logs reports
find . -type d -empty -delete
Expand Down

0 comments on commit 7930dff

Please sign in to comment.