module documentation

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

Class MacroExpander Undocumented
Class MSVCCompiler Concrete class that implements an interface to Microsoft Visual C++, as defined by the CCompiler abstract class.
Class Reg Helper class to read values from the registry
Function find_vcvarsall Find the vcvarsall.bat file
Function get_build_version Return the version of MSVC that was used to build Python.
Function normalize_and_reduce_paths Return a list of normalized paths with duplicates removed.
Function query_vcvarsall Launch vcvarsall.bat and read the settings from its environment
Function removeDuplicates Remove duplicate values of an environment variable.
Constant HKEYS Undocumented
Constant NATIVE_WIN64 Undocumented
Constant NET_BASE Undocumented
Constant PLAT_TO_VCVARS Undocumented
Constant VERSION Undocumented
Constant VS_BASE Undocumented
Constant WINSDK_BASE Undocumented
def find_vcvarsall(version): (source)

Find the vcvarsall.bat file At first it tries to find the productdir of VS 2008 in the registry. If that fails it falls back to the VS90COMNTOOLS env var.

def get_build_version(): (source)

Return the version of MSVC that was used to build Python. For Python 2.3 and up, the version number is included in sys.version. For earlier versions, assume the compiler is MSVC 6.

def normalize_and_reduce_paths(paths): (source)

Return a list of normalized paths with duplicates removed. The current order of paths is maintained.

def query_vcvarsall(version, arch='x86'): (source)

Launch vcvarsall.bat and read the settings from its environment

def removeDuplicates(variable): (source)

Remove duplicate values of an environment variable.

NATIVE_WIN64 = (source)

Undocumented

Value
(sys.platform == 'win32') and (sys.maxsize > 2 ** 32)
NET_BASE: str = (source)

Undocumented

Value
'Software\\Wow6432Node\\Microsoft\\.NETFramework'
PLAT_TO_VCVARS: dict[str, str] = (source)

Undocumented

Value
{'win32': 'x86', 'win-amd64': 'amd64'}

Undocumented

Value
get_build_version()

Undocumented

Value
'Software\\Wow6432Node\\Microsoft\\VisualStudio\\%0.1f'
WINSDK_BASE: str = (source)

Undocumented

Value
'Software\\Wow6432Node\\Microsoft\\Microsoft SDKs\\Windows'