~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-04 08:36:13 UTC
  • mfrom: (2571.3.4 installer)
  • Revision ID: pqm@pqm.ubuntu.com-20070704083613-v2o3pj6chp4hiqky
teach windows installers to build pyrex/C extensions

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
########################
149
149
 
150
150
command_classes = {'install_scripts': my_install_scripts,
151
 
                  'build': bzr_build}
 
151
                   'build': bzr_build}
152
152
ext_modules = []
153
153
try:
154
154
    from Pyrex.Distutils import build_ext
173
173
    dev_docs = glob.glob('doc/developers/*.htm')
174
174
    # python's distutils-based win32 installer
175
175
    ARGS = {'scripts': ['bzr', 'tools/win32/bzr-win32-bdist-postinstall.py'],
 
176
            'ext_modules': ext_modules,
176
177
            # help pages
177
178
            'data_files': [('Doc/Bazaar', docs),
178
179
                           ('Doc/Bazaar/developers', dev_docs),
179
180
                          ],
 
181
            # for building pyrex extensions
 
182
            'cmdclass': {'build_ext': build_ext},
180
183
           }
181
184
 
182
185
    ARGS.update(META_INFO)
223
226
        import warnings
224
227
        warnings.warn('Unknown Python version.\n'
225
228
                      'Please check setup.py script for compatibility.')
 
229
    # email package from std python library use lazy import,
 
230
    # so we need to explicitly add all package
 
231
    additional_packages.append('email')
226
232
 
227
233
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
228
234
                                           additional_packages,