diff options
| author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-12-29 18:15:45 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-04 12:50:41 +0000 |
| commit | 8247c49a22f8d35bdac949948e25432800ff3d5b (patch) | |
| tree | 59be83f7ce75a0d90247cc45f1bc415f8a23b5ee /build_scripts/main.py | |
| parent | bd2d93163d0de9352b0962c45b0d674da0939cc3 (diff) | |
build_scripts: replace print by distutils.log
Change-Id: I1106598719b48650847b08637e0caf6677cb26a0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit a35afc89a911612b4de3c71a8717f1fb74a39455)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'build_scripts/main.py')
| -rw-r--r-- | build_scripts/main.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index ffe13aedd..773460de1 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -246,8 +246,7 @@ def check_allowed_python_version(): supported.append((major, minor)) this_py = sys.version_info[:2] if this_py not in supported: - print("Unsupported python version detected. Only these python versions are supported: {}" - .format(supported)) + log.error(f"Unsupported python version detected. Supported versions: {supported}") sys.exit(1) @@ -321,8 +320,8 @@ def prepare_build(): try: rmtree(d) except Exception as e: - print('***** problem removing "{}"'.format(d)) - print('ignored error: {}'.format(e)) + log.warn(f'***** problem removing "{d}"') + log.warn(f'ignored error: {e}') # locate Qt sources for the documentation if OPTION["QT_SRC"] is None: @@ -367,7 +366,7 @@ class PysideInstall(_install, DistUtilsCommandMixin): def run(self): _install.run(self) - print('--- Install completed ({}s)'.format(elapsed())) + log.info(f"--- Install completed ({elapsed()}s)") class PysideDevelop(_develop): @@ -604,7 +603,7 @@ class PysideBuild(_build, DistUtilsCommandMixin): _build.run(self) else: log.info("Skipped preparing and building packages.") - print('--- Build completed ({}s)'.format(elapsed())) + log.info(f"--- Build completed ({elapsed()}s)") def log_pre_build_info(self): if config.is_internal_shiboken_generator_build_and_part_of_top_level_all(): |
