module documentation

distutils._msvccompiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for Microsoft Visual Studio 2015. The module is compatible with VS 2015 and later. You can find legacy support for older versions in distutils.msvc9compiler and distutils.msvccompiler.

Class MSVCCompiler Concrete class that implements an interface to Microsoft Visual C++, as defined by the CCompiler abstract class.
Constant PLAT_SPEC_TO_RUNTIME Undocumented
Constant PLAT_TO_VCVARS Undocumented
Function _find_exe Return path to an MSVC executable program.
Function _find_vc2015 Undocumented
Function _find_vc2017 Returns "15, path" based on the result of invoking vswhere.exe If no install is found, returns "None, None"
Function _find_vcvarsall Undocumented
Function _get_vc_env Undocumented
PLAT_SPEC_TO_RUNTIME: dict[str, str] = (source)

Undocumented

Value
{'x86': 'x86', 'x86_amd64': 'x64', 'x86_arm': 'arm', 'x86_arm64': 'arm64'}
PLAT_TO_VCVARS: dict[str, str] = (source)

Undocumented

Value
{'win32': 'x86',
 'win-amd64': 'x86_amd64',
 'win-arm32': 'x86_arm',
 'win-arm64': 'x86_arm64'}
def _find_exe(exe, paths=None): (source)

Return path to an MSVC executable program. Tries to find the program in several places: first, one of the MSVC program search paths from the registry; next, the directories in the PATH environment variable. If any of those work, return an absolute path that is known to exist. If none of them work, just return the original program name, 'exe'.

def _find_vc2015(): (source)

Undocumented

def _find_vc2017(): (source)

Returns "15, path" based on the result of invoking vswhere.exe If no install is found, returns "None, None" The version is returned to avoid unnecessarily changing the function result. It may be ignored when the path is not None. If vswhere.exe is not available, by definition, VS 2017 is not installed.

def _find_vcvarsall(plat_spec): (source)

Undocumented

def _get_vc_env(plat_spec): (source)

Undocumented