Kaydet (Commit) ebec02a9 authored tarafından Greg Ward's avatar Greg Ward

Added 'debug_print()' method (driven by DEBUG global from distutils.core).

üst 5108db62
......@@ -172,6 +172,15 @@ class Command:
if self.verbose >= level:
print msg
def debug_print (self, msg):
"""Print 'msg' to stdout if the global DEBUG (taken from the
DISTUTILS_DEBUG environment variable) flag is true.
"""
from distutils.core import DEBUG
if DEBUG:
print msg
# -- Option validation methods -------------------------------------
# (these are very handy in writing the 'finalize_options()' method)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment