This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients mhammond, paul.moore, tarek
Date 2009-04-09.20:51:20
SpamBayes Score 2.7774716e-09
Marked as misclassified No
Message-id <1239310284.73.0.299420830333.issue5731@psf.upfronthosting.co.za>
In-reply-to
Content
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'.
History
Date User Action Args
2009-04-09 20:51:24paul.mooresetrecipients: + paul.moore, mhammond, tarek
2009-04-09 20:51:24paul.mooresetmessageid: <1239310284.73.0.299420830333.issue5731@psf.upfronthosting.co.za>
2009-04-09 20:51:22paul.moorelinkissue5731 messages
2009-04-09 20:51:22paul.moorecreate