~ubuntu-branches/ubuntu/raring/python3.2/raring

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-05 22:01:13 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: package-import@ubuntu.com-20110905220113-gmku3knwah89ojat
Tags: 3.2.2-0ubuntu1
* Python 3.2.2 release.
* Search headers in /usr/include/ncursesw for the curses/panel extensions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        self.no_target_optimize = 0
131
131
        self.target_version = None
132
132
        self.dist_dir = None
133
 
        self.skip_build = 0
 
133
        self.skip_build = None
134
134
        self.install_script = None
135
135
        self.pre_install_script = None
136
136
        self.versions = None
137
137
 
138
138
    def finalize_options(self):
 
139
        self.set_undefined_options('bdist', ('skip_build', 'skip_build'))
 
140
 
139
141
        if self.bdist_dir is None:
140
142
            bdist_base = self.get_finalized_command('bdist').bdist_base
141
143
            self.bdist_dir = os.path.join(bdist_base, 'msi')
 
144
 
142
145
        short_version = get_python_version()
143
146
        if (not self.target_version) and self.distribution.has_ext_modules():
144
147
            self.target_version = short_version
 
148
 
145
149
        if self.target_version:
146
150
            self.versions = [self.target_version]
147
151
            if not self.skip_build and self.distribution.has_ext_modules()\