~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-17 22:01:08 UTC
  • mfrom: (3557.2.9 win32_find_files)
  • Revision ID: pqm@pqm.ubuntu.com-20080717220108-mjcsi7zryl615o91
(jam, bialix) Cleanups to enable compiling with VC7, and Win98 support

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
    pyrex_name = path + '.pyx'
217
217
    c_name = path + '.c'
218
218
    if have_pyrex:
219
 
        ext_modules.append(Extension(module_name, [pyrex_name]))
 
219
        ext_modules.append(Extension(module_name, [pyrex_name], **kwargs))
220
220
    else:
221
221
        if not os.path.isfile(c_name):
222
222
            unavailable_files.append(c_name)
223
223
        else:
224
 
            ext_modules.append(Extension(module_name, [c_name]))
 
224
            ext_modules.append(Extension(module_name, [c_name], **kwargs))
225
225
 
226
226
 
227
227
add_pyrex_extension('bzrlib._dirstate_helpers_c')
228
228
add_pyrex_extension('bzrlib._knit_load_data_c')
229
229
if sys.platform == 'win32':
230
 
    add_pyrex_extension('bzrlib._walkdirs_win32')
 
230
    # pyrex uses the macro WIN32 to detect the platform, even though it should
 
231
    # be using something like _WIN32 or MS_WINDOWS, oh well, we can give it the
 
232
    # right value.
 
233
    add_pyrex_extension('bzrlib._walkdirs_win32',
 
234
                        define_macros=[('WIN32', None)])
231
235
ext_modules.append(Extension('bzrlib._patiencediff_c', ['bzrlib/_patiencediff_c.c']))
232
236
 
233
237