summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-22 01:32:34 (GMT)
committerGreg Ward <gward@python.net>2000-09-22 01:32:34 (GMT)
commitab7983939b2b9f3f1cce5d7b859e97d94052bad6 (patch)
tree8713a12a47ad5ba343354882ec7d06c89468fd88
parent379a02ffa927bb63872ef5616298dc405c4b7221 (diff)
downloadcpython-ab7983939b2b9f3f1cce5d7b859e97d94052bad6.zip
cpython-ab7983939b2b9f3f1cce5d7b859e97d94052bad6.tar.gz
cpython-ab7983939b2b9f3f1cce5d7b859e97d94052bad6.tar.bz2
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).
-rw-r--r--Lib/distutils/command/bdist_wininst.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 4637d45..b4c6d9b 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -75,16 +75,11 @@ class bdist_wininst (Command):
install = self.reinitialize_command('install')
install.root = self.bdist_dir
if os.name != 'nt':
- # must force install to use the 'nt' scheme
- install.select_scheme ('nt')
- # change the backslash to the current pathname separator
- for key in ('purelib', 'platlib', 'headers', 'scripts',
- 'data'):
- attrname = 'install_' + key
- attr = getattr (install, attrname)
- if attr:
- attr = string.replace (attr, '\\', os.sep)
- setattr (install, attrname, attr)
+ # Must force install to use the 'nt' scheme; we set the
+ # prefix too just because it looks silly to put stuff
+ # in (eg.) ".../usr/Scripts", "usr/Include", etc.
+ install.prefix = "Python"
+ install.select_scheme('nt')
install_lib = self.reinitialize_command('install_lib')
# we do not want to include pyc or pyo files