From c67ce9fa1bdb84dddf9bcf8c0222b4d3be1b9598 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 4 Jun 2019 10:38:07 +0000 Subject: [PATCH] py-mod.mk: Make python compilation errors fatal Pass doraise=True to py_compile.compile() Signed-off-by: Jan Lindemann --- make/py-mod.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/py-mod.mk b/make/py-mod.mk index b9ef4a23..88f0cb58 100644 --- a/make/py-mod.mk +++ b/make/py-mod.mk @@ -34,7 +34,7 @@ ifneq ($(PYTHON_VERSION),3) else __pycache__/%.cpython-37.pyc: %.py endif - $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\")" + $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", doraise=True)" ifeq ($(PYTHON),python3) $(PY_INSTALL_DIR_PY)/__pycache__/%.cpython-37.pyc: __pycache__/%.cpython-37.pyc