diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-10-11 19:06:42 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-10-13 21:04:40 +0200 |
| commit | 7e44e3daf13f07c4a70cfded896c389ffc3b7bc2 (patch) | |
| tree | fa291aa0b69b2a55bc237596483b109c737ce58a /build_scripts/wheel_override.py | |
| parent | 4d1c05cb04ec731893ca855d5ba08a1d3c669ca4 (diff) | |
build: replace distutils.log by simple logger
Adding simple logger based on the logging module
to replace the distutils.log one.
Task-number: PYSIDE-2079
Change-Id: I2a4996a57be701552005b57d2b1a251b9fc44c41
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/wheel_override.py')
| -rw-r--r-- | build_scripts/wheel_override.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build_scripts/wheel_override.py b/build_scripts/wheel_override.py index a1620bca9..c77598e30 100644 --- a/build_scripts/wheel_override.py +++ b/build_scripts/wheel_override.py @@ -7,8 +7,7 @@ import platform import sys from email.generator import Generator -from setuptools._distutils import log as logger - +from .log import log from .options import OPTION, DistUtilsCommandMixin from .utils import is_64bit from .wheel_utils import get_package_version, get_qt_version, macos_plat_name @@ -27,7 +26,7 @@ try: wheel_module_exists = True except Exception as e: _bdist_wheel, wheel_version = type, "" # dummy to make class statement happy - logger.warn(f"***** Exception while trying to prepare bdist_wheel override class: {e}. " + log.warning(f"***** Exception while trying to prepare bdist_wheel override class: {e}. " "Skipping wheel overriding.") @@ -255,7 +254,7 @@ class PysideBuildWheel(_bdist_wheel, DistUtilsCommandMixin): writeTag(impl) wheelfile_path = os.path.join(wheelfile_base, 'WHEEL') - logger.info(f'creating {wheelfile_path}') + log.info(f'creating {wheelfile_path}') with open(wheelfile_path, 'w') as f: Generator(f, maxheaderlen=0).flatten(msg) |
