/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: Jelmer Vernooij
  • Date: 2010-03-13 02:49:14 UTC
  • mto: This revision was merged to the branch mainline in revision 5089.
  • Revision ID: jelmer@samba.org-20100313024914-rpuoguinoxpxt05b
Allow merge directives to output multiple patch files. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
    add_pyrex_extension('bzrlib._dirstate_helpers_pyx',
282
282
                        libraries=['Ws2_32'])
283
283
    add_pyrex_extension('bzrlib._walkdirs_win32')
 
284
    z_lib = 'zdll'
284
285
else:
285
286
    if have_pyrex and pyrex_version_info[:3] == (0,9,4):
286
287
        # Pyrex 0.9.4.1 fails to compile this extension correctly
297
298
    else:
298
299
        add_pyrex_extension('bzrlib._dirstate_helpers_pyx')
299
300
    add_pyrex_extension('bzrlib._readdir_pyx')
300
 
add_pyrex_extension('bzrlib._chk_map_pyx')
 
301
    z_lib = 'z'
 
302
add_pyrex_extension('bzrlib._chk_map_pyx', libraries=[z_lib])
301
303
ext_modules.append(Extension('bzrlib._patiencediff_c',
302
304
                             ['bzrlib/_patiencediff_c.c']))
303
305
if have_pyrex and pyrex_version_info < (0, 9, 6, 3):
468
470
 
469
471
def get_svn_py2exe_info(includes, excludes, packages):
470
472
    packages.append('subvertpy')
471
 
    packages.append('sqlite3')
472
473
 
473
474
 
474
475
if 'bdist_wininst' in sys.argv:
571
572
    if sys.version.startswith('2.4'):
572
573
        # adding elementtree package
573
574
        additional_packages.add('elementtree')
574
 
    elif sys.version.startswith('2.6') or sys.version.startswith('2.5'):
 
575
    elif sys.version.startswith('2.5'):
575
576
        additional_packages.add('xml.etree')
576
577
    else:
577
578
        import warnings
710
711
        # easy_install one
711
712
        DATA_FILES = [('man/man1', ['bzr.1'])]
712
713
 
713
 
    if sys.platform != 'win32':
714
 
        # see https://wiki.kubuntu.org/Apport/DeveloperHowTo
715
 
        #
716
 
        # checking the paths and hardcoding the check for root is a bit gross,
717
 
        # but I don't see a cleaner way to find out the locations in a way
718
 
        # that's going to align with the hardcoded paths in apport.
719
 
        if os.geteuid() == 0:
720
 
            DATA_FILES += [
721
 
                ('/usr/share/apport/package-hooks',
722
 
                    ['apport/source_bzr.py']),
723
 
                ('/etc/apport/crashdb.conf.d/',
724
 
                    ['apport/bzr-crashdb.conf']),]
725
 
 
726
714
    # std setup
727
715
    ARGS = {'scripts': ['bzr'],
728
716
            'data_files': DATA_FILES,