# _distutils_hack - pydoc - phpman

Help on package _distutils_hack:

## NAME
    _distutils_hack

## PACKAGE CONTENTS
    override

## CLASSES
    builtins.object
        DistutilsMetaFinder

### class DistutilsMetaFinder
     |  Methods defined here:
     |
     |  find_spec(self, fullname, path, target=None)
     |
     |  spec_for_distutils(self)
     |
     |  spec_for_pip(self)
     |      Ensure stdlib distutils when running under pip.
     |      See pypa/pip#8761 for rationale.
     |
     |  ----------------------------------------------------------------------
     |  Static methods defined here:
     |
     |  pip_imported_during_build()
     |      Detect if pip is being imported in a build script. Ref #2355.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables (if defined)
     |
     |  __weakref__
     |      list of weak references to the object (if defined)

## FUNCTIONS
### add_shim

### clear_distutils

### do_override
        Ensure that the local copy of distutils is preferred over stdlib.

        See <https://github.com/pypa/setuptools/issues/417#issuecomment-392298401>
        for more motivation.

### enabled
        Allow selection of distutils by environment variable.

### ensure_local_distutils

### remove_shim

### warn_distutils_present

## DATA
    DISTUTILS_FINDER = <_distutils_hack.DistutilsMetaFinder object>
    is_pypy = False

## FILE
    /usr/lib/python3/dist-packages/_distutils_hack/__init__.py


