17
17
META_INFO = {'name': 'bzr',
18
18
'version': bzrlib.__version__,
19
19
'author': 'Canonical Ltd',
20
'author_email': 'bazaar-ng@lists.ubuntu.com',
20
'author_email': 'bazaar@lists.canonical.com',
21
21
'url': 'http://www.bazaar-vcs.org/',
22
22
'description': 'Friendly distributed version control system',
23
23
'license': 'GNU GPL v2',
150
148
########################
150
command_classes = {'install_scripts': my_install_scripts,
154
from Pyrex.Distutils import build_ext
156
# try to build the extension from the prior generated source.
157
print ("Pyrex not available, while bzr will build, "
158
"you cannot modify the C extensions.")
159
from distutils.command.build_ext import build_ext
160
from distutils.extension import Extension
162
# Extension("bzrlib.modulename", ["bzrlib/foo.c"], libraries = []))
164
from distutils.extension import Extension
166
# Extension("bzrlib.modulename", ["bzrlib/foo.pyx"], libraries = []))
167
command_classes['build_ext'] = build_ext
152
169
if 'bdist_wininst' in sys.argv:
155
172
docs = glob.glob('doc/*.htm') + ['doc/default.css']
173
dev_docs = glob.glob('doc/developers/*.htm')
156
174
# python's distutils-based win32 installer
157
175
ARGS = {'scripts': ['bzr', 'tools/win32/bzr-win32-bdist-postinstall.py'],
159
'data_files': [('Doc/Bazaar', docs)],
177
'data_files': [('Doc/Bazaar', docs),
178
('Doc/Bazaar/developers', dev_docs),
162
182
ARGS.update(META_INFO)
188
208
version = version_str,
189
209
description = META_INFO['description'],
190
210
author = META_INFO['author'],
191
copyright = "(c) Canonical Ltd, 2005-2006",
211
copyright = "(c) Canonical Ltd, 2005-2007",
192
212
company_name = "Canonical Ltd.",
193
213
comments = META_INFO['description'],
216
additional_packages = []
217
if sys.version.startswith('2.4'):
218
# adding elementtree package
219
additional_packages.append('elementtree')
220
elif sys.version.startswith('2.5'):
221
additional_packages.append('xml.etree')
224
warnings.warn('Unknown Python version.\n'
225
'Please check setup.py script for compatibility.')
195
227
options_list = {"py2exe": {"packages": BZRLIB['packages'] +
197
"excludes": ["Tkinter", "medusa"],
229
"excludes": ["Tkinter", "medusa", "tools"],
198
230
"dist_dir": "win32_bzr.exe",
209
241
ARGS = {'scripts': ['bzr'],
210
242
'data_files': [('man/man1', ['bzr.1'])],
211
'cmdclass': {'build': bzr_build,
212
'install_scripts': my_install_scripts,
243
'cmdclass': command_classes,
244
'ext_modules': ext_modules,
216
247
ARGS.update(META_INFO)