From 8bbb3bb2ee5260d6c6004998ab11e8a6b7ae5669 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Sun, 1 Mar 2020 13:18:30 -0300 Subject: [PATCH] Fixed rspy/Makefile trying to use python3 on Windows --- rspy/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rspy/Makefile b/rspy/Makefile index 76285d577..78341c7c1 100644 --- a/rspy/Makefile +++ b/rspy/Makefile @@ -1,6 +1,12 @@ SHELL := /bin/bash FIND := $(if $(wildcard /bin/find),/bin/find,/usr/bin/find) +ifeq ($(OS),Windows_NT) + PYTHON_BIN := python +else + PYTHON_BIN := python3 +endif + .SHELLFLAGS := -eu -o pipefail -c .DELETE_ON_ERROR: MAKEFLAGS += --warn-undefined-variables @@ -37,7 +43,7 @@ build: $(DEPS) rm -rf $(OUTDIR)/ankirspy* touch ../proto/backend.proto FTL_TEMPLATE_DIRS="$(QT_FTL_TEMPLATES)" FTL_LOCALE_DIRS="$(QT_FTL_LOCALES)" \ - maturin build -i $(shell which python3) -o $(OUTDIR) $(BUILDFLAGS) + maturin build -i $(shell which ${PYTHON_BIN}) -o $(OUTDIR) $(BUILDFLAGS) check: .build/check