setup.py 1.3 KB

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