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
()
| 174 | |
| 175 | |
| 176 | def 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") |