diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-26 16:10:22 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-26 16:30:01 -0500 |
commit | 16326183595beb160242e954d9c30fad0c99e526 (patch) | |
tree | 959c348860552a4880167cf6a2fc8368fc682143 /src/wheel/util.py | |
parent | 2540fef72bc680a0ed92a94d73bf01cdd30044fa (diff) | |
download | wheel-git-python-logging-compat.tar.gz |
Ensure logging is configured even on older Setuptools versions.python-logging-compat
Diffstat (limited to 'src/wheel/util.py')
-rw-r--r-- | src/wheel/util.py | 8 |
1 files changed, 8 insertions, 0 deletions
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""" |