/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: John Arbash Meinel
  • Author(s): Alexander Belchenko
  • Date: 2008-07-17 20:21:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3560.
  • Revision ID: john@arbash-meinel.com-20080717202107-f1jtymylhqnsr910
Pass extra arguments for extensions, and supply WIN32 macro for pyrex.

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_macro=[('WIN32', None)])
231
235
ext_modules.append(Extension('bzrlib._patiencediff_c', ['bzrlib/_patiencediff_c.c']))
232
236
 
233
237