~ubuntu-branches/ubuntu/wily/dulwich/wily

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2013-05-31 00:58:42 UTC
  • mfrom: (1.5.1) (31.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130531005842-whdxa8wnmeqqfidr
Tags: 0.9.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    has_setuptools = False
11
11
from distutils.core import Distribution
12
12
 
13
 
dulwich_version_string = '0.8.5'
 
13
dulwich_version_string = '0.9.0'
14
14
 
15
15
include_dirs = []
16
16
# Windows MSVC support
30
30
        return not self.pure and not '__pypy__' in sys.modules
31
31
 
32
32
    global_options = Distribution.global_options + [
33
 
        ('pure', None, 
34
 
            "use pure Python code instead of C extensions (slower on CPython)")]
 
33
        ('pure', None, "use pure Python code instead of C "
 
34
                       "extensions (slower on CPython)")]
35
35
 
36
36
    pure = False
37
37
 
45
45
    out, err = p.communicate()
46
46
    for l in out.splitlines():
47
47
        # Also parse only first digit, because 3.2.1 can't be parsed nicely
48
 
        if (l.startswith('Xcode') and
49
 
            int(l.split()[1].split('.')[0]) >= 4):
 
48
        if l.startswith('Xcode') and int(l.split()[1].split('.')[0]) >= 4:
50
49
            os.environ['ARCHFLAGS'] = ''
51
50
 
52
51
setup_kwargs = {}
53
52
 
54
53
if has_setuptools:
55
 
    setup_kwargs['test_suite'] = 'dulwich.tests'
 
54
    setup_kwargs['test_suite'] = 'dulwich.tests.test_suite'
56
55
 
57
56
setup(name='dulwich',
58
57
      description='Python Git Library',
59
58
      keywords='git',
60
59
      version=dulwich_version_string,
61
60
      url='http://samba.org/~jelmer/dulwich',
62
 
      download_url='http://samba.org/~jelmer/dulwich/dulwich-%s.tar.gz' % dulwich_version_string,
 
61
      download_url='http://samba.org/~jelmer/dulwich/'
 
62
                   'dulwich-%s.tar.gz' % dulwich_version_string,
63
63
      license='GPLv2 or later',
64
64
      author='Jelmer Vernooij',
65
65
      author_email='jelmer@samba.org',
73
73
      """,
74
74
      packages=['dulwich', 'dulwich.tests'],
75
75
      scripts=['bin/dulwich', 'bin/dul-daemon', 'bin/dul-web'],
76
 
      ext_modules = [
 
76
      ext_modules=[
77
77
          Extension('dulwich._objects', ['dulwich/_objects.c'],
78
78
                    include_dirs=include_dirs),
79
79
          Extension('dulwich._pack', ['dulwich/_pack.c'],
80
80
              include_dirs=include_dirs),
81
81
          Extension('dulwich._diff_tree', ['dulwich/_diff_tree.c'],
82
82
              include_dirs=include_dirs),
83
 
          ],
 
83
      ],
84
84
      distclass=DulwichDistribution,
85
85
      **setup_kwargs
86
86
      )