bdist-wininst-notfound
authorMatthias Klose <doko@debian.org>
Thu, 16 Dec 2021 23:13:29 +0000 (23:13 +0000)
committerMatthias Klose <doko@debian.org>
Thu, 16 Dec 2021 23:13:29 +0000 (23:13 +0000)
# DP: suggest installation of the pythonX.Y-dev package, if bdist_wininst
# DP: cannot find the wininst-* files.

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

Gbp-Pq: Name bdist-wininst-notfound.diff

Lib/distutils/command/bdist_wininst.py

index 0e9ddaa21419e9581392d170a51dfcf53203d5e8..2ee12e2e98281722c4d9111eab234a189c7a541a 100644 (file)
@@ -371,6 +371,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: