Skip to content

Commit

Permalink
Apply error message from downstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 27, 2024
1 parent 196d44b commit 5e290a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distutils/_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ def _get_vc_env(plat_spec):

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

try:
out = subprocess.check_output(
Expand Down

0 comments on commit 5e290a6

Please sign in to comment.