mirror of
https://github.com/python/cpython.git
synced 2026-01-27 01:32:20 +00:00
bdist_wininst now works correctly when both --skip-build and --plat-name are specified.
This commit is contained in:
parent
a436878419
commit
88eeef35d7
1 changed files with 6 additions and 0 deletions
|
|
@ -79,6 +79,12 @@ def initialize_options (self):
|
|||
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue