MCPcopy Create free account
hub / github.com/python/cpython / _find_vcvarsall

Function _find_vcvarsall

Tools/c-analyzer/distutils/_msvccompiler.py:93–109  ·  view source on GitHub ↗
(plat_spec)

Source from the content-addressed store, hash-verified

91}
92
93def _find_vcvarsall(plat_spec):
94 # bpo-38597: Removed vcruntime return value
95 _, best_dir = _find_vc2017()
96
97 if not best_dir:
98 best_version, best_dir = _find_vc2015()
99
100 if not best_dir:
101 log.debug("No suitable Visual C++ version found")
102 return None, None
103
104 vcvarsall = os.path.join(best_dir, "vcvarsall.bat")
105 if not os.path.isfile(vcvarsall):
106 log.debug("%s cannot be found", vcvarsall)
107 return None, None
108
109 return vcvarsall, None
110
111def _get_vc_env(plat_spec):
112 if os.getenv("DISTUTILS_USE_SDK"):

Callers 1

_get_vc_envFunction · 0.85

Calls 5

_find_vc2017Function · 0.85
_find_vc2015Function · 0.85
debugMethod · 0.45
joinMethod · 0.45
isfileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…