From 16326183595beb160242e954d9c30fad0c99e526 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 26 Dec 2021 16:10:22 -0500 Subject: Ensure logging is configured even on older Setuptools versions. --- src/wheel/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wheel/util.py') diff --git a/src/wheel/util.py b/src/wheel/util.py index af470b5..775433f 100644 --- a/src/wheel/util.py +++ b/src/wheel/util.py @@ -5,6 +5,14 @@ import logging log = logging.getLogger('wheel') +# ensure Python logging is configured +try: + __import__('setuptools.logging') +except ImportError: + # setuptools < ?? + from . import _setuptools_logging + _setuptools_logging.configure() + def urlsafe_b64encode(data: bytes) -> bytes: """urlsafe_b64encode without padding""" -- cgit v1.2.1