2 # Setup file for bzr-git
3 # Copyright (C) 2008-2010 Jelmer Vernooij <jelmer@samba.org>
6 from setuptools import setup, Extension
8 from distutils.core import setup, Extension
9 from distutils.core import Distribution
11 dulwich_version_string = '0.5.1'
14 # Windows MSVC support
16 if sys.platform == 'win32':
17 include_dirs.append('dulwich')
20 class DulwichDistribution(Distribution):
26 def has_ext_modules(self):
29 global_options = Distribution.global_options + [
31 "use pure (slower) Python code instead of C extensions")]
37 description='Pure-Python Git Library',
39 version=dulwich_version_string,
40 url='http://samba.org/~jelmer/dulwich',
41 download_url='http://samba.org/~jelmer/dulwich/dulwich-%s.tar.gz' % dulwich_version_string,
42 license='GPLv2 or later',
43 author='Jelmer Vernooij',
44 author_email='jelmer@samba.org',
46 Simple Pure-Python implementation of the Git file formats and
47 protocols. Dulwich is the place where Mr. and Mrs. Git live
48 in one of the Monty Python sketches.
50 packages=['dulwich', 'dulwich.tests'],
51 scripts=['bin/dulwich', 'bin/dul-daemon', 'bin/dul-web'],
53 Extension('dulwich._objects', ['dulwich/_objects.c'],
54 include_dirs=include_dirs),
55 Extension('dulwich._pack', ['dulwich/_pack.c'],
56 include_dirs=include_dirs),
58 distclass=DulwichDistribution,