Skip to content

Commit 3930480

Browse files
committed
print an explanation when setup.py fails due to the MSSDK not being found
1 parent 2193bba commit 3930480

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,14 @@ def monkeypatched_link(self, target_desc, objects, output_filename, *args, **kw)
316316

317317
sdk_dir = find_platform_sdk_dir()
318318
if not sdk_dir:
319-
raise RuntimeError("Can't find the Windows SDK")
319+
print
320+
print "It looks like you are trying to build pywin32 in an environment without"
321+
print "the necessary tools installed. It's much easier to grab binaries!"
322+
print
323+
print "Please read the docstring at the top of this file, or read README.md"
324+
print "for more information."
325+
print
326+
raise RuntimeError("Can't find the Windows SDK")
320327

321328
class WinExt (Extension):
322329
# Base class for all win32 extensions, with some predefined

0 commit comments

Comments
 (0)