~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jason Baker
  • Date: 2009-12-01 18:55:48 UTC
  • Revision ID: jason@ubuntu-20091201185548-eafr64bmuhai51wc
Adding nose plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
try:
6
6
    from setuptools import setup, Extension
 
7
    use_setuptools = True
7
8
except ImportError:
8
9
    from distutils.core import setup, Extension
 
10
    use_setuptools = False
9
11
 
10
12
 
11
13
if os.path.isfile("MANIFEST"):
28
30
            packages.append(directory.replace(os.sep, '.'))
29
31
    return packages
30
32
 
 
33
if use_setuptools:
 
34
    setuptools_kwargs = {
 
35
        'entry_points' : {
 
36
            'nose.plugins.0.10' : [
 
37
                'storm_debug = storm.nose_plugin:StormDebug'],
 
38
            }
 
39
        }
 
40
else:
 
41
    setuptools_kwargs = {}
31
42
 
32
43
setup(
33
44
    name="storm",
54
65
        "Topic :: Software Development :: Libraries :: Python Modules",
55
66
    ],
56
67
    ext_modules=(BUILD_CEXTENSIONS and
57
 
                 [Extension("storm.cextensions", ["storm/cextensions.c"])])
 
68
                 [Extension("storm.cextensions", ["storm/cextensions.c"])]),
 
69
    **setuptools_kwargs
58
70
)