/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

Merge with bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
 
227
227
 
228
228
add_pyrex_extension('bzrlib._btree_serializer_c')
229
 
add_pyrex_extension('bzrlib._dirstate_helpers_c')
230
229
add_pyrex_extension('bzrlib._knit_load_data_c')
231
 
add_pyrex_extension('bzrlib._readdir_pyx')
232
230
if sys.platform == 'win32':
 
231
    add_pyrex_extension('bzrlib._dirstate_helpers_c',
 
232
                         libraries=['Ws2_32']
 
233
                       )
233
234
    # pyrex uses the macro WIN32 to detect the platform, even though it should
234
235
    # be using something like _WIN32 or MS_WINDOWS, oh well, we can give it the
235
236
    # right value.
236
237
    add_pyrex_extension('bzrlib._walkdirs_win32',
237
238
                        define_macros=[('WIN32', None)])
 
239
else:
 
240
    add_pyrex_extension('bzrlib._dirstate_helpers_c')
 
241
    add_pyrex_extension('bzrlib._readdir_pyx')
238
242
ext_modules.append(Extension('bzrlib._patiencediff_c', ['bzrlib/_patiencediff_c.c']))
239
243
 
240
244
 
351
355
    excludes.append('PyQt4.elementtree.ElementTree')
352
356
    includes.append('sip') # extension module required for Qt.
353
357
    packages.append('pygments') # colorizer for qbzr
 
358
    packages.append('docutils') # html formatting
354
359
    # but we can avoid many Qt4 Dlls.
355
360
    dll_excludes.extend(
356
361
        """QtAssistantClient4.dll QtCLucene4.dll QtDesigner4.dll
509
514
            plugins = set(dirs)
510
515
        x = []
511
516
        for i in files:
512
 
            if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll"]:
 
517
            if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll", ".mo"]:
513
518
                continue
514
519
            if i == '__init__.py' and root == 'bzrlib/plugins':
515
520
                continue