Commit 7d6f876b authored by Greg Ward's avatar Greg Ward

Tweak what happens when run on non-Windows platforms: set install prefix

as well as scheme, and don't convert all installation paths (that's now
done by the "install" command for us).
parent ade6e349
...@@ -75,16 +75,11 @@ class bdist_wininst (Command): ...@@ -75,16 +75,11 @@ class bdist_wininst (Command):
install = self.reinitialize_command('install') install = self.reinitialize_command('install')
install.root = self.bdist_dir install.root = self.bdist_dir
if os.name != 'nt': if os.name != 'nt':
# must force install to use the 'nt' scheme # Must force install to use the 'nt' scheme; we set the
install.select_scheme ('nt') # prefix too just because it looks silly to put stuff
# change the backslash to the current pathname separator # in (eg.) ".../usr/Scripts", "usr/Include", etc.
for key in ('purelib', 'platlib', 'headers', 'scripts', install.prefix = "Python"
'data'): install.select_scheme('nt')
attrname = 'install_' + key
attr = getattr (install, attrname)
if attr:
attr = string.replace (attr, '\\', os.sep)
setattr (install, attrname, attr)
install_lib = self.reinitialize_command('install_lib') install_lib = self.reinitialize_command('install_lib')
# we do not want to include pyc or pyo files # we do not want to include pyc or pyo files
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment