Commit 3f14d160 authored by PJ Eby's avatar PJ Eby

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
parent 76dfb37a
......@@ -9,7 +9,6 @@ import sys
if sys.version>='2.5':
# In Python 2.5 and above, distutils includes its own upload command
__all__.remove('upload')
__all__.remove('bdist_wininst') # this is only for 'upload' support
from distutils.command.bdist import bdist
......
......@@ -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
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