Skip to content

Commit

Permalink
Feat: Handle python and python3 in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxence Drutel committed Sep 27, 2023
1 parent bb2d254 commit 5c6fcab
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
VENV=venv
PYTHON=python

MODULES=qiskit_alice_bob_provider tests
BUILD_DIR=dist
BASE_URL=
API_KEY=
ifeq ($(OS),Windows_NT)
ACTIVATE=$(VENV)/Scripts/activate
PYTHON3_PATH=$(cmd which python3 2> nul)
else
ACTIVATE=$(VENV)/bin/activate
PYTHON3_PATH=$(shell which python3 2> /dev/null)
endif

ifeq ($(PYTHON3_PATH),)
PYTHON=python
else
PYTHON=python3
endif

#### Virtual environment
Expand Down

0 comments on commit 5c6fcab

Please sign in to comment.