From 1e8af535ea56043020be264fc0b43a478510447f Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 18 Apr 2023 18:41:00 +0100 Subject: [PATCH] Updates the Makefile to check where Python bin is --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9716e46..7e3e585 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,17 @@ .PHONY: all install_requirements download combine +PYTHON := $(shell which python3 2>/dev/null || which python) + all: install_requirements download combine install_requirements: - pip install -r lib/requirements.txt + $(PYTHON) -m pip install -r lib/requirements.txt download: - python lib/download.py + $(PYTHON) lib/download.py combine: - python lib/combine.py + $(PYTHON) lib/combine.py validate: - python lib/validate.py + $(PYTHON) lib/validate.py