py-mod.mk: Support PY_INIT_SUBMODULES #24

Merged
Jan Lindemann merged 1 commit from jan/feature/20260617-py-mod-mk-support-py-init-submodules into master 2026-06-17 19:43:32 +02:00 AGit

py-mod.mk: Support PY_INIT_SUBMODULES

Add support for PY_INIT_SUBMODULES to py-mod.mk. If it is defined in a Makefile including py-mod.mk, the listed submodules will be added to __init__.py and thus included in the list of things that can be imported from a module.

This commit also adds support for --submodules to python-tools.sh for that to happen.

#### py-mod.mk: Support PY_INIT_SUBMODULES Add support for ```PY_INIT_SUBMODULES``` to ```py-mod.mk```. If it is defined in a Makefile including py-mod.mk, the listed submodules will be added to ```__init__.py``` and thus included in the list of things that can be imported from a module. This commit also adds support for ```--submodules``` to ```python-tools.sh``` for that to happen.
py-mod.mk: Support PY_INIT_SUBMODULES
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 3m3s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 3m12s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m2s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 3m21s
CI / Packaging test (push) Successful in 0s
d42040cb7b

Add support for PY_INIT_SUBMODULES to py-mod.mk. If it is defined in a Makefile including py-mod.mk, the listed submodules will be added to __init__.py and thus included in the list of things that can be imported from a module.

This commit also adds support for --submodules to python-tools.sh for that to happen.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-06-17 19:32:42 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janware/jw-pkg!24
No description provided.