File: bdist-wininst-notfound.diff

package info (click to toggle)
python3-stdlib-extensions 3.11.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,020 kB
  • sloc: python: 134,527; ansic: 24,386; sh: 213; makefile: 190
file content (17 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# DP: suggest installation of the pythonX.Y-dev package, if bdist_wininst
# DP: cannot find the wininst-* files.

--- a/3.6/Lib/distutils/command/bdist_wininst.py
+++ b/3.6/Lib/distutils/command/bdist_wininst.py
@@ -357,7 +357,10 @@ class bdist_wininst(Command):
             sfix = ''
 
         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: