/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin Pool
  • Date: 2008-07-21 07:48:30 UTC
  • mfrom: (3564 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3566.
  • Revision ID: mbp@sourcefrog.net-20080721074830-i1pgj2hswpfo6pav
merge trunk

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
if sys.platform == '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)])
229
235
ext_modules.append(Extension('bzrlib._patiencediff_c', ['bzrlib/_patiencediff_c.c']))
230
236
 
231
237