From 5e290a6e4444ac3f64fe191eeecc1e95dd24fd7b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 27 Aug 2024 11:43:34 -0400 Subject: [PATCH] Apply error message from downstream. Ref pypa/setuptools#4600 and pypa/setuptools#2334 --- distutils/_msvccompiler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distutils/_msvccompiler.py b/distutils/_msvccompiler.py index 14efed83..3577f8ff 100644 --- a/distutils/_msvccompiler.py +++ b/distutils/_msvccompiler.py @@ -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(