py-defs.mk: Honour PY_INSTALL_INIT_PY = false #75
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260822-py-defs-mk-honor-py-install-init-py-false"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
py-defs.mk: Honor PY_INSTALL_INIT_PY = false
PY_ALL_PY is derived from PY_SRC_PY, which wildcards *.py in the module directory, so a checked-in init.py enters the install list unconditionally. PY_INSTALL_INIT_PY only gates the later append of init.py, which covers files generated at build time. Setting it to false thus had no effect on an existing init.py, which was still installed together with its .pyc.
Filter init.py out of PY_ALL_PY. When PY_INSTALL_INIT_PY is true, the existing append adds it back, so generated and checked-in init.py files are installed as before. When it is false, an existing init.py is now excluded from PY_ALL_PY and therefore also from PY_INSTALLED_PY and PY_PYC.
py-defs.mk: Honor PY_INSTALL_INIT_PY = falseto py-defs.mk: Honour PY_INSTALL_INIT_PY = false