Skip to content

Commit

Permalink
chore: allow other options than pip in Makefile
Browse files Browse the repository at this point in the history
This allows using `uv` for instance :

```
# create the venv with an arbitrary python version
uv venv venv --python 3.9
# use uv instead of pip for the install
PIP="uv pip" make install
```
  • Loading branch information
alxthm committed Dec 19, 2024
1 parent b2e9368 commit 149bb4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VENV=venv
PIP?=pip

MODULES=qiskit_alice_bob_provider tests
BUILD_DIR=dist
Expand All @@ -24,7 +25,7 @@ $(VENV):
$(PYTHON) -m venv $(VENV)

install: $(VENV)
. $(ACTIVATE) && pip install -e .[dev]
. $(ACTIVATE) && $(PIP) install -e .[dev]

clear:
rm -rf $(VENV)
Expand Down

0 comments on commit 149bb4e

Please sign in to comment.