log.debug(msg)
def debug_print (self, msg):
- from distutils.core import DEBUG
+ from distutils.debug import DEBUG
if DEBUG:
print msg
"""Print 'msg' to stdout if the global DEBUG (taken from the
DISTUTILS_DEBUG environment variable) flag is true.
"""
- from distutils.core import DEBUG
+ from distutils.debug import DEBUG
if DEBUG:
print msg
sys.stdout.flush()
import sys, os, string
import glob
from types import *
-from distutils.core import Command, DEBUG
+from distutils.core import Command
+from distutils.debug import DEBUG
from distutils.util import get_platform
from distutils.file_util import write_file
from distutils.errors import *
import sys, os, string
from types import *
-from distutils.core import Command, DEBUG
+from distutils.core import Command
+from distutils.debug import DEBUG
from distutils.sysconfig import get_config_vars
from distutils.errors import DistutilsPlatformError
from distutils.file_util import write_file
import sys, os
from types import *
-# If DISTUTILS_DEBUG is anything other than the empty string, we run in
-# debug mode.
-DEBUG = os.environ.get('DISTUTILS_DEBUG')
-
+from distutils.debug import DEBUG
from distutils.errors import *
from distutils.util import grok_environment_error
from distutils.cmd import Command
from distutils.extension import Extension
-
# This is a barebones help message generated displayed when the user
# runs the setup script with no arguments at all. More useful help
# is generated with various --help options: global help, list commands,
from distutils.fancy_getopt import FancyGetopt, translate_longopt
from distutils.util import check_environ, strtobool, rfc822_escape
from distutils import log
-from distutils.core import DEBUG
+from distutils.debug import DEBUG
# Regex to define acceptable Distutils command names. This is not *quite*
# the same as a Python NAME -- I don't allow leading underscores. The fact
"""Print 'msg' to stdout if the global DEBUG (taken from the
DISTUTILS_DEBUG environment variable) flag is true.
"""
- from distutils.core import DEBUG
+ from distutils.debug import DEBUG
if DEBUG:
print msg