# DP: suggest installation of the pythonX.Y-dev package, if bdist_wininst
# DP: cannot find the wininst-* files.

--- a/3.7/Lib/distutils/command/bdist_wininst.py
+++ b/3.7/Lib/distutils/command/bdist_wininst.py
@@ -362,6 +362,10 @@ class bdist_wininst(Command):
         filename = os.path.join(directory, "wininst-%s%s.exe" % (bv, sfix))
         f = open(filename, "rb")
         try:
+            f = open(filename, "rb")
+        except IOError as e:
+            raise DistutilsFileError(str(e) + ', %s not included in the Debian packages.' % filename)
+        try:
             return f.read()
         finally:
             f.close()
