diff --git a/Makefile b/Makefile index 19827cd68..7fa1e22c2 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,21 @@ SHELL := /bin/bash ifeq ($(OS),Windows_NT) - PYTHON_BIN := python - ACTIVATE_SCRIPT := pyenv/Scripts/activate + ifndef ACTIVATE_SCRIPT + ACTIVATE_SCRIPT := pyenv/Scripts/activate + endif + + ifndef PYTHON_BIN + PYTHON_BIN := python + endif else - PYTHON_BIN := python3 - ACTIVATE_SCRIPT := pyenv/bin/activate + ifndef ACTIVATE_SCRIPT + ACTIVATE_SCRIPT := pyenv/bin/activate + endif + + ifndef PYTHON_BIN + PYTHON_BIN := python3 + endif endif ifndef ANKI_EXTRA_PIP diff --git a/rspy/Makefile b/rspy/Makefile index 9aafb50e5..e961fca97 100644 --- a/rspy/Makefile +++ b/rspy/Makefile @@ -2,9 +2,13 @@ SHELL := /bin/bash FIND := $(if $(wildcard /bin/find),/bin/find,/usr/bin/find) ifeq ($(OS),Windows_NT) - PYTHON_BIN := python + ifndef PYTHON_BIN + PYTHON_BIN := python + endif else - PYTHON_BIN := python3 + ifndef PYTHON_BIN + PYTHON_BIN := python3 + endif endif .SHELLFLAGS := -eu -o pipefail -c