def ensure_local_distutils():
    clear_distutils()
    distutils = importlib.import_module('setuptools._distutils')
    distutils.__name__ = 'distutils'
    sys.modules['distutils'] = distutils
    core = importlib.import_module('distutils.core')
    assert ('_distutils' in core.__file__), core.__file__
def ensure_local_distutils():
    clear_distutils()
    distutils = importlib.import_module('setuptools._distutils')
    distutils.__name__ = 'distutils'
    sys.modules['distutils'] = distutils
    core = importlib.import_module('distutils.core')
    assert ('_distutils' in core.__file__), core.__file__