~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Lib/distutils/command/bdist_wininst.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
    def finalize_options (self):
81
81
        if self.bdist_dir is None:
 
82
            if self.skip_build and self.plat_name:
 
83
                # If build is skipped and plat_name is overridden, bdist will
 
84
                # not see the correct 'plat_name' - so set that up manually.
 
85
                bdist = self.distribution.get_command_obj('bdist')
 
86
                bdist.plat_name = self.plat_name
 
87
                # next the command will be initialized using that name
82
88
            bdist_base = self.get_finalized_command('bdist').bdist_base
83
89
            self.bdist_dir = os.path.join(bdist_base, 'wininst')
84
90
        if not self.target_version: