def enabled():
    """
    Allow selection of distutils by environment variable.
    """
    which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
    return which == 'local'

    Allow selection of distutils by environment variable.
    
product/gradle-plugin/src/main/python/_distutils_hack/__init__.py