Package distutils :: Module msvccompiler
[hide private]
[frames] | no frames]

Module msvccompiler

distutils.msvccompiler

Contains MSVCCompiler, an implementation of the abstract CCompiler class for the Microsoft Visual Studio.

Classes [hide private]
MacroExpander
MSVCCompiler
Concrete class that implements an interface to Microsoft Visual C++, as defined by the CCompiler abstract class.
Functions [hide private]
 
read_keys(base, key)
Return list of registry keys.
 
read_values(base, key)
Return dict of registry keys and values.
 
convert_mbcs(s)
 
get_build_version()
Return the version of MSVC that was used to build Python.
 
get_build_architecture()
Return the processor architecture.
Variables [hide private]
  __revision__ = '$Id: msvccompiler.py 50979 2006-07-30 13:27:31...
  _can_read_reg = 0
  hkey_mod = win32con
  RegOpenKeyEx = win32api.RegOpenKeyEx
  RegEnumKey = win32api.RegEnumKey
  RegEnumValue = win32api.RegEnumValue
  RegError = win32api.error
  HKEYS = hkey_mod.HKEY_USERS, hkey_mod.HKEY_CURRENT_USER, hkey_...

Imports: sys, os, string, DistutilsExecError, DistutilsPlatformError, CompileError, LibError, LinkError, CCompiler, gen_preprocess_options, gen_lib_options, log, _winreg, win32api, win32con


Function Details [hide private]

read_values(base, key)

 

Return dict of registry keys and values.

All names are converted to lowercase.

get_build_version()

 

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.

get_build_architecture()

 

Return the processor architecture.

Possible results are "Intel", "Itanium", or "AMD64".


Variables Details [hide private]

__revision__

Value:
'$Id: msvccompiler.py 50979 2006-07-30 13:27:31Z martin.v.loewis $'

HKEYS

Value:
hkey_mod.HKEY_USERS, hkey_mod.HKEY_CURRENT_USER, hkey_mod.HKEY_LOCAL_M\
ACHINE, hkey_mod.HKEY_CLASSES_ROOT