MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Tools/c-analyzer/distutils/msvccompiler.py:226–242  ·  view source on GitHub ↗
(self, verbose=0, dry_run=0, force=0)

Source from the content-addressed store, hash-verified

224 exe_extension = '.exe'
225
226 def __init__(self, verbose=0, dry_run=0, force=0):
227 CCompiler.__init__ (self, verbose, dry_run, force)
228 self.__version = get_build_version()
229 self.__arch = get_build_architecture()
230 if self.__arch == "Intel":
231 # x86
232 if self.__version >= 7:
233 self.__root = r"Software\Microsoft\VisualStudio"
234 self.__macros = MacroExpander(self.__version)
235 else:
236 self.__root = r"Software\Microsoft\Devstudio"
237 self.__product = "Visual Studio version %s" % self.__version
238 else:
239 # Win64. Assume this was built with the platform SDK
240 self.__product = "Microsoft SDK compiler %s" % (self.__version + 6)
241
242 self.initialized = False
243
244
245 # -- Miscellaneous methods -----------------------------------------

Callers

nothing calls this directly

Calls 3

MacroExpanderClass · 0.90
get_build_architectureFunction · 0.85
get_build_versionFunction · 0.70

Tested by

no test coverage detected