blob: 5b72bb1fd6ac4af24513735f3188a48f6fc1030f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# DP: the wininst-* files cannot be built within Debian, needing a
# DP: zlib mingw build, which the zlib maintainer isn't going to provide.
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -360,7 +360,10 @@
sfix = ''
filename = os.path.join(directory, "wininst-%.1f%s.exe" % (bv, sfix))
- f = open(filename, "rb")
+ try:
+ f = open(filename, "rb")
+ except IOError, msg:
+ raise DistutilsFileError, str(msg) + ', %s not included in the Debian packages.' % filename
try:
return f.read()
finally:
|