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