diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2008-05-28 01:54:55 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2008-05-28 01:54:55 (GMT) |
commit | 88eeef35d7795ec427f61e67f427dccaeabc0d11 (patch) | |
tree | ee10aafed0e4bc1886967837909854fbbf7cf368 /Lib | |
parent | a4368784197a338c69a249229d24f88fff816701 (diff) | |
download | cpython-88eeef35d7795ec427f61e67f427dccaeabc0d11.zip cpython-88eeef35d7795ec427f61e67f427dccaeabc0d11.tar.gz cpython-88eeef35d7795ec427f61e67f427dccaeabc0d11.tar.bz2 |
bdist_wininst now works correctly when both --skip-build and --plat-name are specified.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/bdist_wininst.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index 7c43e74..f18e318 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -79,6 +79,12 @@ class bdist_wininst (Command): def finalize_options (self): if self.bdist_dir is None: + if self.skip_build and self.plat_name: + # If build is skipped and plat_name is overridden, bdist will + # not see the correct 'plat_name' - so set that up manually. + bdist = self.distribution.get_command_obj('bdist') + bdist.plat_name = self.plat_name + # next the command will be initialized using that name bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'wininst') if not self.target_version: |