~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Arnaud Jeansen
  • Date: 2010-03-19 23:58:06 UTC
  • mto: This revision was merged to the branch mainline in revision 5126.
  • Revision ID: arnaud.jeansen@gmail.com-20100319235806-n0owdq874qsrb12u
Go back to unified report_delta method (i.e. former TreeDelta.show())

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',
470
470
 
471
471
def get_svn_py2exe_info(includes, excludes, packages):
472
472
    packages.append('subvertpy')
473
 
    packages.append('sqlite3')
474
473
 
475
474
 
476
475
if 'bdist_wininst' in sys.argv:
554
553
                                     version = version_str,
555
554
                                     description = META_INFO['description'],
556
555
                                     author = META_INFO['author'],
557
 
                                     copyright = "(c) Canonical Ltd, 2005-2010",
 
556
                                     copyright = "(c) Canonical Ltd, 2005-2009",
558
557
                                     company_name = "Canonical Ltd.",
559
558
                                     comments = META_INFO['description'],
560
559
                                    )
573
572
    if sys.version.startswith('2.4'):
574
573
        # adding elementtree package
575
574
        additional_packages.add('elementtree')
576
 
    elif sys.version.startswith('2.6') or sys.version.startswith('2.5'):
 
575
    elif sys.version.startswith('2.5'):
577
576
        additional_packages.add('xml.etree')
578
577
    else:
579
578
        import warnings
625
624
            excludes.extend(["bzrlib.plugins." + d for d in dirs])
626
625
        x = []
627
626
        for i in files:
628
 
            # Throw away files we don't want packaged. Note that plugins may
629
 
            # have data files with all sorts of extensions so we need to
630
 
            # be conservative here about what we ditch.
631
 
            ext = os.path.splitext(i)[1]
632
 
            if ext.endswith('~') or ext in [".pyc", ".swp"]:
 
627
            if os.path.splitext(i)[1] not in [".py", ".pyd", ".dll", ".mo"]:
633
628
                continue
634
629
            if i == '__init__.py' and root == 'bzrlib/plugins':
635
630
                continue
712
707
        # easy_install one
713
708
        DATA_FILES = [('man/man1', ['bzr.1'])]
714
709
 
715
 
    if sys.platform != 'win32':
716
 
        # see https://wiki.kubuntu.org/Apport/DeveloperHowTo
717
 
        #
718
 
        # checking the paths and hardcoding the check for root is a bit gross,
719
 
        # but I don't see a cleaner way to find out the locations in a way
720
 
        # that's going to align with the hardcoded paths in apport.
721
 
        if os.geteuid() == 0:
722
 
            DATA_FILES += [
723
 
                ('/usr/share/apport/package-hooks',
724
 
                    ['apport/source_bzr.py']),
725
 
                ('/etc/apport/crashdb.conf.d/',
726
 
                    ['apport/bzr-crashdb.conf']),]
727
 
 
728
710
    # std setup
729
711
    ARGS = {'scripts': ['bzr'],
730
712
            'data_files': DATA_FILES,