setup.py 1.2 KB

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