diff options
Diffstat (limited to 'src/cephadm/build.py')
-rwxr-xr-x | src/cephadm/build.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cephadm/build.py b/src/cephadm/build.py index 929668edb1f..4264b814f1e 100755 --- a/src/cephadm/build.py +++ b/src/cephadm/build.py @@ -6,6 +6,7 @@ # of python to build with? Even with the intermediate cmake layer? import argparse +import compileall import logging import os import pathlib @@ -78,6 +79,14 @@ def _build(dest, src, versioning_vars=None): def _compile(dest, tempdir): """Compile the zipapp.""" + log.info("Byte-compiling py to pyc") + compileall.compile_dir( + tempdir, + maxlevels=16, + legacy=True, + quiet=1, + workers=0, + ) # TODO we could explicitly pass a python version here log.info("Constructing the zipapp file") try: |