Werk #16906: Bytecode compilation in post-install step rather than packaging

Component Site management
Title Bytecode compilation in post-install step rather than packaging
Date Nov 3, 2025
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Pre-compilation for Python byte code had previously been done during package builds, resulting in bigger Checkmk installation packages and potentially missing precompiled files due to differences in packaging processes.

This change turns the different compileall call sites into one post-install step for both .deb and .rpm packages, handling the whole Checkmk package at once.

As a result the whole Checkmk installation process takes roughly 10sec longer.

To the list of all Werks