File: setup.py

package info (click to toggle)
twisted-runner 10.1.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 156 kB
  • ctags: 170
  • sloc: python: 752; makefile: 102; ansic: 37
file content (35 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (c) 2008 Twisted Matrix Laboratories.
# See LICENSE for details.

try:
    from twisted.python.dist import setup, ConditionalExtension as Extension
except ImportError:
    raise SystemExit("twisted.python.dist module not found.  Make sure you "
                     "have installed the Twisted core package before "
                     "attempting to install any other Twisted projects.")

extensions = [
    Extension("twisted.runner.portmap",
              ["twisted/runner/portmap.c"],
              condition=lambda builder: builder._check_header("rpc/rpc.h")),
]

if __name__ == '__main__':
    setup(
        twisted_subproject="runner",
        # metadata
        name="Twisted Runner",
        description="Twisted Runner is a process management library and inetd "
                    "replacement.",
        author="Twisted Matrix Laboratories",
        author_email="twisted-python@twistedmatrix.com",
        maintainer="Andrew Bennetts",
        url="http://twistedmatrix.com/trac/wiki/TwistedRunner",
        license="MIT",
        long_description="""\
Twisted Runner contains code useful for persistent process management
with Python and Twisted, and has an almost full replacement for inetd.
""",
        # build stuff
        conditionalExtensions=extensions,
    )