~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 16:16:53 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1919.
  • Revision ID: john@arbash-meinel.com-20060814161653-54cdcdadcd4e9003
Remove bogus entry from BRANCH.TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 './setup.py --help' for more options
7
7
"""
8
8
 
9
 
import os
10
 
import sys
11
 
 
12
9
import bzrlib
13
10
 
14
11
##
23
20
             'license':      'GNU GPL v2',
24
21
            }
25
22
 
26
 
# The list of packages is automatically generated later. Add other things
27
 
# that are part of BZRLIB here.
28
 
BZRLIB = {}
 
23
BZRLIB = {'packages': ['bzrlib',
 
24
                       'bzrlib.benchmarks',
 
25
                       'bzrlib.bundle',
 
26
                       'bzrlib.bundle.serializer',
 
27
                       'bzrlib.doc',
 
28
                       'bzrlib.doc.api',
 
29
                       'bzrlib.export',
 
30
                       'bzrlib.plugins',
 
31
                       'bzrlib.plugins.launchpad',
 
32
                       'bzrlib.store',
 
33
                       'bzrlib.store.revision',
 
34
                       'bzrlib.store.versioned',
 
35
                       'bzrlib.tests',
 
36
                       'bzrlib.tests.blackbox',
 
37
                       'bzrlib.tests.branch_implementations',
 
38
                       'bzrlib.tests.bzrdir_implementations',
 
39
                       'bzrlib.tests.interrepository_implementations',
 
40
                       'bzrlib.tests.intertree_implementations',
 
41
                       'bzrlib.tests.interversionedfile_implementations',
 
42
                       'bzrlib.tests.repository_implementations',
 
43
                       'bzrlib.tests.revisionstore_implementations',
 
44
                       'bzrlib.tests.tree_implementations',
 
45
                       'bzrlib.tests.workingtree_implementations',
 
46
                       'bzrlib.transport',
 
47
                       'bzrlib.transport.http',
 
48
                       'bzrlib.ui',
 
49
                       'bzrlib.util',
 
50
                       'bzrlib.util.configobj',
 
51
                       'bzrlib.util.effbot.org',
 
52
                       'bzrlib.util.elementtree',
 
53
                      ],
 
54
         }
29
55
 
30
56
PKG_DATA = {# install files from selftest suite
31
57
            'package_data': {'bzrlib': ['doc/api/*.txt',
37
63
# Reinvocation stolen from bzr, we need python2.4 by virtue of bzr_man
38
64
# including bzrlib.help
39
65
 
 
66
import os
 
67
import sys
 
68
 
40
69
try:
41
70
    version_info = sys.version_info
42
71
except AttributeError:
62
91
    os.unsetenv(REINVOKE)
63
92
 
64
93
 
65
 
def get_bzrlib_packages():
66
 
    """Recurse through the bzrlib directory, and extract the package names"""
67
 
 
68
 
    packages = []
69
 
    base_path = os.path.dirname(os.path.abspath(bzrlib.__file__))
70
 
    for root, dirs, files in os.walk(base_path):
71
 
        if '__init__.py' in files:
72
 
            assert root.startswith(base_path)
73
 
            # Get just the path below bzrlib
74
 
            package_path = root[len(base_path):]
75
 
            # Remove leading and trailing slashes
76
 
            package_path = package_path.strip('\\/')
77
 
            if not package_path:
78
 
                package_name = 'bzrlib'
79
 
            else:
80
 
                package_name = ('bzrlib.' +
81
 
                            package_path.replace('/', '.').replace('\\', '.'))
82
 
            packages.append(package_name)
83
 
    return sorted(packages)
84
 
 
85
 
 
86
 
BZRLIB['packages'] = get_bzrlib_packages()
87
 
 
88
 
 
89
94
from distutils.core import setup
90
95
from distutils.command.install_scripts import install_scripts
91
96
from distutils.command.build import build