Support custom fields in commits.
[jelmer/dulwich-libgit2.git] / setup.py
1 #!/usr/bin/python
2 # Setup file for bzr-git
3 # Copyright (C) 2008-2009 Jelmer Vernooij <jelmer@samba.org>
4
5 try:
6     from setuptools import setup
7 except ImportError:
8     from distutils.core import setup
9 from distutils.extension import Extension
10
11 dulwich_version_string = '0.4.2'
12
13 include_dirs = []
14 # Windows MSVC support
15 import sys
16 if sys.platform == 'win32':
17     include_dirs.append('dulwich')
18
19
20 setup(name='dulwich',
21       description='Pure-Python Git Library',
22       keywords='git',
23       version=dulwich_version_string,
24       url='http://samba.org/~jelmer/dulwich',
25       download_url='http://samba.org/~jelmer/dulwich/dulwich-%s.tar.gz' % dulwich_version_string,
26       license='GPLv2 or later',
27       author='Jelmer Vernooij',
28       author_email='jelmer@samba.org',
29       long_description="""
30       Simple Pure-Python implementation of the Git file formats and
31       protocols. Dulwich is the place where Mr. and Mrs. Git live
32       in one of the Monty Python sketches.
33       """,
34       packages=['dulwich', 'dulwich.tests'],
35       scripts=['bin/dulwich', 'bin/dul-daemon'],
36       ext_modules=[
37           Extension('dulwich._objects', ['dulwich/_objects.c'],
38                     include_dirs=include_dirs),
39           Extension('dulwich._pack', ['dulwich/_pack.c'],
40                     include_dirs=include_dirs),
41           ],
42       )