MCPcopy Index your code
hub / github.com/kivy/python-for-android / patch_wheel_setuptools_logging

Function patch_wheel_setuptools_logging

pythonforandroid/util.py:176–186  ·  view source on GitHub ↗

When setuptools is not present and the root logger has no handlers, Wheels would configure the root logger with DEBUG level, refs: - https://github.com/pypa/wheel/blob/0.44.0/src/wheel/util.py - https://github.com/pypa/wheel/blob/0.44.0/src/wheel/_setuptools_logging.py Both of

()

Source from the content-addressed store, hash-verified

174
175
176def patch_wheel_setuptools_logging():
177 """
178 When setuptools is not present and the root logger has no handlers,
179 Wheels would configure the root logger with DEBUG level, refs:
180 - https://github.com/pypa/wheel/blob/0.44.0/src/wheel/util.py
181 - https://github.com/pypa/wheel/blob/0.44.0/src/wheel/_setuptools_logging.py
182
183 Both of these conditions are met in our CI, leading to very verbose
184 and unreadable `sh` logs. Patching it prevents that.
185 """
186 return mock.patch("wheel._setuptools_logging.configure")

Callers 1

install_wheelMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected