From ded958839699ead1e08cee996a8354875b7c89c5 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 16 Nov 2025 18:44:46 +0100 Subject: [PATCH] jw.build: Disable generation of __init__.py The default behaviour of a generated __init__.py is to load all exported symbols in the respective directory. Since jw-python.py is invoked often, this hampers performance, so disable it. Signed-off-by: Jan Lindemann --- src/python/jw/build/Makefile | 1 + src/python/jw/build/cmds/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/src/python/jw/build/Makefile b/src/python/jw/build/Makefile index 59b3ac1f..b54ec56c 100644 --- a/src/python/jw/build/Makefile +++ b/src/python/jw/build/Makefile @@ -1,4 +1,5 @@ TOPDIR = ../../../.. +PY_UPDATE_INIT_PY = false include $(TOPDIR)/make/proj.mk include $(JWBDIR)/make/py-mod.mk diff --git a/src/python/jw/build/cmds/Makefile b/src/python/jw/build/cmds/Makefile index 781b0c8c..58976631 100644 --- a/src/python/jw/build/cmds/Makefile +++ b/src/python/jw/build/cmds/Makefile @@ -1,4 +1,5 @@ TOPDIR = ../../../../.. +PY_UPDATE_INIT_PY = false include $(TOPDIR)/make/proj.mk include $(JWBDIR)/make/py-mod.mk