The core classes and how they collaborate during a build.
- PPG - Global singleton holding config, target platform, and version families.
- Config - Loads and merges YAML configuration; the
Foldershelper resolves build paths.
- BuildSetup - Drives the overall compilation: resolve spec, select modules, build, validate, compress.
- ModuleBuilder - Abstract base for anything that gets compiled (external C libs and Python itself).
- PythonBuilder -
ModuleBuilderspecialization for python implementations. - Cpython - Concrete builder: CPython's configure/make/install, optimization, and finalization.
- PythonInspector - Validates the portability of a built (or any) python by checking shared-library dependencies and paths.
PPG (config, target, families)
└─ BuildSetup(python_spec)
├─ Folders (resolved build/dist/... paths)
├─ BuildContext (macOS folder masking, isolation)
└─ python_builder : Cpython (a PythonBuilder, a ModuleBuilder)
└─ modules : ModuleCollection
└─ candidates/selected : ModuleBuilder (Openssl, Zlib, ...)