Skip to content

Commit 4b4c86d

Browse files
committed
Chore: Add PIP variable to Makefile
- Defines a PIP variable to be used in the install target. - This allows for more explicit control over which pip executable is used. - Ensures consistency with how other tools like PYTHON and RUFF are defined.
1 parent 82be678 commit 4b4c86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ VENV_ACTIVATE := source $(VENV_BIN)/activate
88
DEFAULT_PYTHON := $(if $(wildcard $(VENV_BIN)/python),$(VENV_BIN)/python,)
99

1010
PYTHON ?= $(if $(DEFAULT_PYTHON),$(DEFAULT_PYTHON),$(UVX) python)
11+
PIP ?= $(if $(DEFAULT_PYTHON),$(VENV_BIN)/pip,$(UVX) pip)
1112
RUFF ?= $(UVX) ruff
1213
PYTEST ?= pytest -vv --cov=simple_agent --cov-report=term-missing
1314

@@ -18,7 +19,7 @@ venv:
1819
@echo "Activate with: $(VENV_ACTIVATE)"
1920

2021
install:
21-
$(PYTHON) -m pip install -r requirements.txt
22+
$(PIP) install -r requirements.txt
2223

2324
run:
2425
$(PYTHON) main.py "$(PROMPT)"

0 commit comments

Comments
 (0)