Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true.
(self, msg)
| 182 | log.log(level, msg) |
| 183 | |
| 184 | def debug_print(self, msg): |
| 185 | """Print 'msg' to stdout if the global DEBUG (taken from the |
| 186 | DISTUTILS_DEBUG environment variable) flag is true. |
| 187 | """ |
| 188 | from distutils.debug import DEBUG |
| 189 | if DEBUG: |
| 190 | print(msg) |
| 191 | sys.stdout.flush() |
| 192 | |
| 193 | |
| 194 | # -- Option validation methods ------------------------------------- |