/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: 2010-03-22 00:29:50 UTC
  • mto: This revision was merged to the branch mainline in revision 5104.
  • Revision ID: mbp@canonical.com-20100322002950-ek55t84syxhpwhfi
Add doc about root and homedir-relative URLs

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    'version':      bzrlib.__version__,
38
38
    'author':       'Canonical Ltd',
39
39
    'author_email': 'bazaar@lists.canonical.com',
40
 
    'url':          'http://bazaar.canonical.com/',
 
40
    'url':          'http://www.bazaar.canonical.com/',
41
41
    'description':  'Friendly distributed version control system',
42
42
    'license':      'GNU GPL v2',
43
43
    'download_url': 'https://launchpad.net/bzr/+download',
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:
552
553
                                     version = version_str,
553
554
                                     description = META_INFO['description'],
554
555
                                     author = META_INFO['author'],
555
 
                                     copyright = "(c) Canonical Ltd, 2005-2010",
 
556
                                     copyright = "(c) Canonical Ltd, 2005-2009",
556
557
                                     company_name = "Canonical Ltd.",
557
558
                                     comments = META_INFO['description'],
558
559
                                    )
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
623
624
            excludes.extend(["bzrlib.plugins." + d for d in dirs])
624
625
        x = []
625
626
        for i in files:
626
 
            # Throw away files we don't want packaged. Note that plugins may
627
 
            # have data files with all sorts of extensions so we need to
628
 
            # be conservative here about what we ditch.
629
 
            ext = os.path.splitext(i)[1]
630
 
            if ext.endswith('~') or ext in [".pyc", ".swp"]:
 
627
            if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll", ".mo"]:
631
628
                continue
632
629
            if i == '__init__.py' and root == 'bzrlib/plugins':
633
630
                continue
710
707
        # easy_install one
711
708
        DATA_FILES = [('man/man1', ['bzr.1'])]
712
709
 
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
710
    # std setup
727
711
    ARGS = {'scripts': ['bzr'],
728
712
            'data_files': DATA_FILES,