module documentation

Monkey patching of distutils.

Function get_unpatched Undocumented
Function get_unpatched_class Protect against re-patching the distutils if reloaded
Function get_unpatched_function Undocumented
Function patch_all Undocumented
Function patch_for_msvc_specialized_compiler Patch functions in distutils to use standalone Microsoft Visual C++ compilers.
Function patch_func Patch func_name in target_mod with replacement
Function _get_mro Returns the bases classes for cls sorted by the MRO.
Function _patch_distribution_metadata Patch write_pkg_file and read_pkg_file for higher metadata standards
def get_unpatched(item): (source)

Undocumented

def get_unpatched_class(cls): (source)

Protect against re-patching the distutils if reloaded Also ensures that no other distutils extension monkeypatched the distutils first.

def get_unpatched_function(candidate): (source)

Undocumented

def patch_all(): (source)

Undocumented

def patch_for_msvc_specialized_compiler(): (source)

Patch functions in distutils to use standalone Microsoft Visual C++ compilers.

def patch_func(replacement, target_mod, func_name): (source)

Patch func_name in target_mod with replacement Important - original must be resolved by name to avoid patching an already patched function.

def _get_mro(cls): (source)

Returns the bases classes for cls sorted by the MRO. Works around an issue on Jython where inspect.getmro will not return all base classes if multiple classes share the same name. Instead, this function will return a tuple containing the class itself, and the contents of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.

def _patch_distribution_metadata(): (source)

Patch write_pkg_file and read_pkg_file for higher metadata standards