~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/runner/topfiles/setup.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2008 Twisted Matrix Laboratories.
 
2
# See LICENSE for details.
 
3
 
 
4
try:
 
5
    from twisted.python.dist import setup, ConditionalExtension as Extension
 
6
except ImportError:
 
7
    raise SystemExit("twisted.python.dist module not found.  Make sure you "
 
8
                     "have installed the Twisted core package before "
 
9
                     "attempting to install any other Twisted projects.")
 
10
 
 
11
extensions = [
 
12
    Extension("twisted.runner.portmap",
 
13
              ["twisted/runner/portmap.c"],
 
14
              condition=lambda builder: builder._check_header("rpc/rpc.h")),
 
15
]
 
16
 
 
17
if __name__ == '__main__':
 
18
    setup(
 
19
        twisted_subproject="runner",
 
20
        # metadata
 
21
        name="Twisted Runner",
 
22
        description="Twisted Runner is a process management library and inetd "
 
23
                    "replacement.",
 
24
        author="Twisted Matrix Laboratories",
 
25
        author_email="twisted-python@twistedmatrix.com",
 
26
        maintainer="Andrew Bennetts",
 
27
        url="http://twistedmatrix.com/trac/wiki/TwistedRunner",
 
28
        license="MIT",
 
29
        long_description="""\
 
30
Twisted Runner contains code useful for persistent process management
 
31
with Python and Twisted, and has an almost full replacement for inetd.
 
32
""",
 
33
        # build stuff
 
34
        conditionalExtensions=extensions,
 
35
    )