def clear_distutils():
    if ('distutils' not in sys.modules):
        return
    warnings.warn('Setuptools is replacing distutils.')
    mods = [name for name in sys.modules if re.match('distutils\\b', name)]
    for name in mods:
        del sys.modules[name]
def clear_distutils():
    if ('distutils' not in sys.modules):
        return
    warnings.warn('Setuptools is replacing distutils.')
    mods = [name for name in sys.modules if re.match('distutils\\b', name)]
    for name in mods:
        del sys.modules[name]