From aea7ee77591dded4d2360f1e409065dce25b3713 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a707bd1..775c661 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,12 @@ VENV=venv -PYTHON=python + +# Check if python3 is available. +ifeq ($(shell command -v python3 2> /dev/null),) + PYTHON=python +else + PYTHON=python3 +endif + MODULES=qiskit_alice_bob_provider tests BUILD_DIR=dist BASE_URL=