refactor: give each installer module one role

The split had pushed each helper down into the lowest module using it.
Names now sit with the concern they belong to (68 modules, 45 before),
each with a one-line docstring saying it, and the import graph stays
acyclic. Statement source and comments moved unchanged: every top-level
statement of install.py keeps an identical ast.dump.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 02:55:56 +01:00
1 parent 9b0c7a390c
commit 6b597f85a0
78 files changed
+30571 -30127

No files matched your search

+9
View File
@@ -251,3 +251,12 @@ def _clean_mapping(value: dict, keep: str = "") -> dict:
"""value with its keys and items through _clean_strings."""
return {_clean_strings(key, keep): _clean_strings(item, keep)
for key, item in value.items()}
# --events: one JSON object per line on stdout, for a program driving the
# installer (the handheld port shows its screens from them). Each kind has
# exactly these keys besides "event", in this order, and nothing else.
EVENT_SCHEMA = 1
# Seconds between two progress events while bytes arrive.
EVENT_PROGRESS_INTERVAL = 0.5