# DP: suggest installation of the pythonX.Y-dev package, if bdist_wininst # DP: cannot find the wininst-* files. Index: python2.6-2.6.5+20100521/Lib/distutils/command/bdist_wininst.py =================================================================== --- python2.6-2.6.5+20100521.orig/Lib/distutils/command/bdist_wininst.py 2010-05-21 16:00:54.707726898 +0200 +++ python2.6-2.6.5+20100521/Lib/distutils/command/bdist_wininst.py 2010-05-21 16:00:54.711709946 +0200 @@ -354,5 +354,8 @@ sfix = '' filename = os.path.join(directory, "wininst-%.1f%s.exe" % (bv, sfix)) - return open(filename, "rb").read() + try: + return open(filename, "rb").read() + except IOError, msg: + raise DistutilsFileError, str(msg) + ', please install the python%s-dev package' % sys.version[:3] # class bdist_wininst