diff options
author | PJ Eby <distutils-sig@python.org> | 2006-12-29 00:59:37 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-12-29 00:59:37 +0000 |
commit | 3f14d160421187a37ccfb91f1e7fce6d54378cb6 (patch) | |
tree | 1ec8d8edc97414867bb1ea4019ffd67a85dd741c /setuptools/command/bdist_wininst.py | |
parent | 76dfb37a768a71adde2d97b7e73c537a11e5a826 (diff) | |
download | external_python_setuptools-3f14d160421187a37ccfb91f1e7fce6d54378cb6.tar.gz external_python_setuptools-3f14d160421187a37ccfb91f1e7fce6d54378cb6.tar.bz2 external_python_setuptools-3f14d160421187a37ccfb91f1e7fce6d54378cb6.zip |
Work around a distutils bdist_wininst bug: if the user has specified an
--install-lib via a configuration file, the path is hardcoded into the
.exe file in place of PLATLIB/ or PURELIB/. (Backport from trunk.)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053184
Diffstat (limited to 'setuptools/command/bdist_wininst.py')
-rwxr-xr-x | setuptools/command/bdist_wininst.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py index e0e5cfb2..9881f3b1 100755 --- a/setuptools/command/bdist_wininst.py +++ b/setuptools/command/bdist_wininst.py @@ -20,3 +20,11 @@ class bdist_wininst(_bdist_wininst): getattr(self.distribution,'dist_files',[]).append( ('bdist_wininst', pyversion, installer_name) ) + + def reinitialize_command (self, command, reinit_subcommands=0): + cmd = self.distribution.reinitialize_command( + command, reinit_subcommands) + if command in ('install', 'install_lib'): + cmd.install_lib = None # work around distutils bug + return cmd + |