OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools.monkey Namespace Reference

Functions

def get_unpatched (item)
 
def get_unpatched_class (cls)
 
def patch_all ()
 
def patch_func (replacement, target_mod, func_name)
 
def get_unpatched_function (candidate)
 
def patch_for_msvc_specialized_compiler ()
 

Detailed Description

Monkey patching of distutils.

Function Documentation

◆ get_unpatched()

def setuptools.monkey.get_unpatched (   item)

◆ get_unpatched_class()

def setuptools.monkey.get_unpatched_class (   cls)
Protect against re-patching the distutils if reloaded

Also ensures that no other distutils extension monkeypatched the distutils
first.

◆ get_unpatched_function()

def setuptools.monkey.get_unpatched_function (   candidate)

◆ patch_all()

def setuptools.monkey.patch_all ( )

◆ patch_for_msvc_specialized_compiler()

def setuptools.monkey.patch_for_msvc_specialized_compiler ( )
Patch functions in distutils to use standalone Microsoft Visual C++
compilers.

◆ patch_func()

def setuptools.monkey.patch_func (   replacement,
  target_mod,
  func_name 
)
Patch func_name in target_mod with replacement

Important - original must be resolved by name to avoid
patching an already patched function.