20
23
'license': 'GNU GPL v2',
23
BZRLIB = {'packages': ['bzrlib',
26
'bzrlib.bundle.serializer',
31
'bzrlib.plugins.launchpad',
33
'bzrlib.store.revision',
34
'bzrlib.store.versioned',
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',
47
'bzrlib.transport.http',
50
'bzrlib.util.configobj',
51
'bzrlib.util.effbot.org',
52
'bzrlib.util.elementtree',
26
BZRLIB = {'packages':get_bzrlib_packages()}
56
28
PKG_DATA = {# install files from selftest suite
57
29
'package_data': {'bzrlib': ['doc/api/*.txt',
91
60
os.unsetenv(REINVOKE)
63
def get_bzrlib_packages():
64
"""Recurse through the bzrlib directory, and extract the package names"""
67
base_path = os.path.dirname(os.path.abspath(bzrlib.__file__))
68
for root, dirs, files in os.walk(base_path):
69
if '__init__.py' in files:
70
assert root.startswith(base_path)
71
# Get just the path below bzrlib
72
package_path = root[len(base_path):]
73
# Remove leading and trailing slashes
74
package_path = package_path.strip('\\/')
76
package_name = 'bzrlib'
78
package_name = ('bzrlib.' +
79
package_path.replace('/', '.').replace('\\', '.'))
80
packages.append(package_name)
81
return sorted(packages)
94
84
from distutils.core import setup
95
85
from distutils.command.install_scripts import install_scripts
96
86
from distutils.command.build import build