Message85825
In revision 62197, Mon Apr 7 01:53:39 2008 UTC, Mark Hammond added code
to Lib/distutils/command/bdist_wininst.py which was intended to select
an architecture-specific installer executable.
In doing so, the code appears to have broken the ability to build
installers on non-Windows platforms.
The current code is
if self.plat_name == 'win32':
sfix = ''
else:
sfix = self.plat_name[3:] # strip 'win' - leaves eg '-amd64'
filename = os.path.join(directory, "wininst-%.1f%s.exe" % (bv, sfix))
return open(filename, "rb").read()
This says "strip 'win'", but in practice strips the first 3 characters
from any plat_name other than win32.
I've attached an untested patch to fix this, by setting sfix to '' if
self.plat_name doesn't start with 'win'. |
|
Date |
User |
Action |
Args |
2009-04-09 20:51:24 | paul.moore | set | recipients:
+ paul.moore, mhammond, tarek |
2009-04-09 20:51:24 | paul.moore | set | messageid: <1239310284.73.0.299420830333.issue5731@psf.upfronthosting.co.za> |
2009-04-09 20:51:22 | paul.moore | link | issue5731 messages |
2009-04-09 20:51:22 | paul.moore | create | |
|