~jelmer/dulwich/lp-pqm

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-10 15:29:16 UTC
  • mfrom: (426.1.1 lp-pqm)
  • Revision ID: launchpad@pqm.canonical.com-20110810152916-2ivg8kq9gdwd7gr5
[rs=jelmer] Update to upstream 930.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
# Setup file for dulwich
3
 
# Copyright (C) 2008-2010 Jelmer Vernooij <jelmer@samba.org>
 
3
# Copyright (C) 2008-2011 Jelmer Vernooij <jelmer@samba.org>
4
4
 
5
5
try:
6
6
    from setuptools import setup, Extension
 
7
    has_setuptools = True
7
8
except ImportError:
8
9
    from distutils.core import setup, Extension
 
10
    has_setuptools = False
9
11
from distutils.core import Distribution
10
12
 
11
 
dulwich_version_string = '0.7.2'
 
13
dulwich_version_string = '0.8.1'
12
14
 
13
15
include_dirs = []
14
16
# Windows MSVC support
55
57
        int(version.split()[1].split('.')[0]) >= 4):
56
58
        os.environ['ARCHFLAGS'] = ''
57
59
 
 
60
setup_kwargs = {}
 
61
 
 
62
if has_setuptools:
 
63
    setup_kwargs['test_suite'] = 'dulwich.tests'
 
64
 
58
65
setup(name='dulwich',
59
66
      description='Python Git Library',
60
67
      keywords='git',
83
90
              include_dirs=include_dirs),
84
91
          ],
85
92
      distclass=DulwichDistribution,
 
93
      **setup_kwargs
86
94
      )