Skip to content

Commit 5f1160f

Browse files
committed
Apply error message from downstream.
Ref pypa/setuptools#4600 and pypa/setuptools#2334
1 parent 196d44b commit 5f1160f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

distutils/_msvccompiler.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ def _get_vc_env(plat_spec):
148148

149149
vcvarsall, _ = _find_vcvarsall(plat_spec)
150150
if not vcvarsall:
151-
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
151+
raise DistutilsPlatformError(
152+
'Microsoft Visual C++ 14.0 or greater is required. '
153+
'Get it with "Microsoft C++ Build Tools": '
154+
'https://visualstudio.microsoft.com/visual-cpp-build-tools/'
155+
)
152156

153157
try:
154158
out = subprocess.check_output(

0 commit comments

Comments
 (0)