From 5c6fcab9a0b919801286250128c400c094d17624 Mon Sep 17 00:00:00 2001 From: Maxence Drutel Date: Wed, 27 Sep 2023 09:07:37 +0000 Subject: [PATCH] Feat: Handle python and python3 in Makefile --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a707bd1..b93bdfc 100644 --- a/Makefile +++ b/Makefile @@ -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