Ticket #1286: setup.py

File setup.py, 1.6 KB (added by therve, 8 years ago)
Line 
1#!/usr/bin/env python
2
3# Copyright (c) 2001-2007 Twisted Matrix Laboratories.
4# See LICENSE for details.
5
6import sys, os
7
8from twisted import copyright
9from twisted.python import dist
10
11def main(args):
12    if os.path.exists('twisted'):
13        sys.path.insert(0, '.')
14    from twisted.topfiles import setup as topsetup
15    projects = ['', 'conch', 'lore', 'mail', 'names',
16                'runner', 'web', 'words', 'news']
17    scripts = []
18    for i in projects:
19        scripts.extend(dist.getScripts(i))
20    setup_args = dict(
21        # metadata
22        name="Twisted",
23        version=copyright.version,
24        description="An asynchronous networking framework written in Python",
25        author="Twisted Matrix Laboratories",
26        author_email="twisted-python@twistedmatrix.com",
27        maintainer="Glyph Lefkowitz",
28        maintainer_email="glyph@twistedmatrix.com",
29        url="http://twistedmatrix.com/",
30        license="MIT",
31        long_description="""\
32    An extensible framework for Python programming, with special focus
33    on event-based network programming and multiprotocol integration.
34
35    It is expected that one day the project will expanded to the point
36    that the framework will seamlessly integrate with mail, web, DNS,
37    netnews, IRC, RDBMSs, desktop environments, and your toaster.
38    """,
39
40        packages=dist.getPackages('twisted'),
41        data_files=dist.getDataFiles('twisted'),
42        ext_modules=topsetup.extensions,
43        scripts=scripts,
44    )
45    dist.setup(**setup_args)
46
47
48if __name__ == "__main__":
49    try:
50        main(sys.argv[1:])
51    except KeyboardInterrupt:
52        sys.exit(1)
53