Skip to content

Commit 224571d

Browse files
authored
build(fix): correct ensure-uv when using pyenv (#276)
1 parent c15727c commit 224571d

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

Makefile

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ docs:
3939
$(MAKE) -C ./docs
4040

4141
ensure-uv:
42-
@if ! command -v $(UV) >/dev/null 2>&1; then \
43-
if ! command -v pip >/dev/null 2>&1; then \
44-
$(PYTHON) -m ensurepip; \
45-
fi; \
46-
$(PYTHON) -m pip install uv; \
42+
@if ! command -v $(UV) >/dev/null; then \
43+
$(PYTHON) -m ensurepip && $(PYTHON) -m pip install uv; \
4744
fi
4845

4946
fmt:
@@ -71,19 +68,20 @@ version:
7168

7269
help:
7370
@echo "Makefile Targets"
74-
@echo " all Run deps, dev, test, lint, and build"
75-
@echo " build Build the project"
76-
@echo " clean Clean up project artifacts"
77-
@echo " cov Generate a coverage report"
78-
@echo " cov-html Generate an HTML coverage report and open it"
79-
@echo " cov-xml Generate an XML coverage report"
80-
@echo " deps Install dependencies"
81-
@echo " dev Install the project in editable mode"
82-
@echo " docs Build the documentation"
83-
@echo " fmt Format the code"
84-
@echo " install Install the built project"
85-
@echo " it Run integration tests"
86-
@echo " lint Lint the code"
87-
@echo " test Run unit tests with coverage"
88-
@echo " uninstall Uninstall the project"
89-
@echo " version Display the project version"
71+
@echo " all Run deps, dev, test, lint, and build"
72+
@echo " build Build the project"
73+
@echo " clean Clean up project artifacts"
74+
@echo " cov Generate a coverage report"
75+
@echo " cov-html Generate an HTML coverage report and open it"
76+
@echo " cov-xml Generate an XML coverage report"
77+
@echo " deps Install dependencies"
78+
@echo " dev Install the project in editable mode"
79+
@echo " docs Build the documentation"
80+
@echo " ensure-uv Ensure 'uv' is installed"
81+
@echo " fmt Format the code"
82+
@echo " install Install the built project"
83+
@echo " it Run integration tests"
84+
@echo " lint Lint the code"
85+
@echo " test Run unit tests with coverage"
86+
@echo " uninstall Uninstall the project"
87+
@echo " version Display the project version"

0 commit comments

Comments
 (0)