make: fix mypy check on windows

This commit is contained in:
Corentin Le Molgat
2020-12-08 10:17:02 +01:00
parent afdfef2b3d
commit 702c457b8d

View File

@@ -27,10 +27,11 @@ PYTHON_COMPILER ?= python$(UNIX_PYTHON_VER)
PYTHON_EXECUTABLE := $(shell which $(PYTHON_COMPILER))
SET_PYTHONPATH = PYTHONPATH=$(OR_TOOLS_PYTHONPATH)
GEN_MYPY := $(shell command -v protoc-gen-mypy 2> /dev/null)
endif
ifneq ($(GEN_MYPY),)
MYPY_OUT=--mypy_out=$(GEN_PATH)
endif
endif
# Detect python3
PYTHON3 := true