]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - setup.py
README: update the wording of the "LICENCE" section to more closely follow FSF recomm...
[tahoe-lafs/tahoe-lafs.git] / setup.py
1 #! /usr/bin/env python
2
3 # Allmydata Tahoe -- secure, distributed storage grid
4
5 # Copyright (C) 2007 Allmydata, Inc.
6
7 # This file is part of tahoe.
8
9 # This program is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the Free
11 # Software Foundation; either version 2 of the License, or (at your option)
12 # any later version, with the added permission that, if you become obligated
13 # to release a derived work under this licence (as per section 2.b), you may
14 # delay the fulfillment of this obligation for up to 12 months.  If you are
15 # obligated to release code under section 2.b of this licence, you are
16 # obligated to release it under these same terms, including the 12-month grace
17 # period clause.  See the COPYING file for details.
18 #
19 # If you would like to inquire about a commercial relationship with Allmydata,
20 # Inc., please contact partnerships@allmydata.com and visit
21 # http://allmydata.com/.
22
23 import re, os.path
24 from distutils.core import Extension, setup
25
26 trove_classifiers=[
27     "Development Status :: 3 - Alpha", 
28     "Environment :: Console",
29     "Environment :: Web Environment",
30     "License :: OSI Approved :: GNU General Public License (GPL)", 
31     "License :: DFSG approved",
32     "Intended Audience :: Developers", 
33     "Intended Audience :: End Users/Desktop",
34     "Intended Audience :: System Administrators",
35     "Operating System :: Microsoft",
36     "Operating System :: Microsoft :: Windows",
37     "Operating System :: Unix",
38     "Operating System :: POSIX :: Linux",
39     "Operating System :: POSIX",
40     "Operating System :: MacOS :: MacOS X",
41     "Operating System :: Microsoft :: Windows :: Windows NT/2000",
42     "Operating System :: OS Independent", 
43     "Natural Language :: English", 
44     "Programming Language :: C", 
45     "Programming Language :: Python", 
46     "Topic :: Utilities",
47     "Topic :: System :: Systems Administration",
48     "Topic :: System :: Filesystems",
49     "Topic :: System :: Distributed Computing",
50     "Topic :: Software Development :: Libraries",
51     "Topic :: Communications :: Usenet News",
52     "Topic :: System :: Archiving :: Backup", 
53     "Topic :: System :: Archiving :: Mirroring", 
54     "Topic :: System :: Archiving", 
55     ]
56
57
58 VERSIONFILE = "src/allmydata/version.py"
59 verstr = "unknown"
60 if os.path.exists(VERSIONFILE):
61     VSRE = re.compile("^verstr = ['\"]([^'\"]*)['\"]", re.M)
62     verstrline = open(VERSIONFILE, "rt").read()
63     mo = VSRE.search(verstrline)
64     if mo:
65         verstr = mo.group(1)
66     else:
67         print "unable to find version in version.py"
68         raise RuntimeError("if version.py exists, it must be well-formed")
69
70
71 LONG_DESCRIPTION=\
72 """Welcome to the AllMyData "tahoe" project. This project implements a
73 secure, distributed, fault-tolerant storage grid.
74
75 The basic idea is that the data in this storage grid is spread over all
76 participating nodes, using an algorithm that can recover the data even if a
77 majority of the nodes are no longer available."""
78
79 setup(name='allmydata-tahoe',
80       version=verstr,
81       description='secure, distributed storage grid',
82       long_description=LONG_DESCRIPTION,
83       author='Allmydata, Inc.',
84       author_email='tahoe-dev@allmydata.org',
85       url='http://allmydata.org/',
86       license='GNU GPL',
87       packages=["allmydata", "allmydata.test", "allmydata.util",
88                 "allmydata.scripts",
89                 "allmydata.Crypto", "allmydata.Crypto.Cipher",
90                 "allmydata.Crypto.Hash", "allmydata.Crypto.Util",
91                 #"allmydata.Crypto.PublicKey",
92                 ],
93       package_dir={ "allmydata": "src/allmydata",},
94       scripts = ["bin/allmydata-tahoe"],
95       package_data={ 'allmydata': ['web/*.xhtml', 'web/*.html', 'web/*.css'] },
96       classifiers=trove_classifiers,
97       test_suite="allmydata.test",
98       ext_modules=[
99           Extension("allmydata.Crypto.Cipher.AES",
100                     include_dirs=["src/allmydata/Crypto"],
101                     sources=["src/allmydata/Crypto/AES.c"]),
102           Extension("allmydata.Crypto.Hash.SHA256",
103                     include_dirs=["src/allmydata/Crypto"],
104                     sources=["src/allmydata/Crypto/SHA256.c"]),
105           # _fastmath requires gmp. Since we're not using rsa yet, hold off
106           # on requiring this. (note that RSA.py doesn't require _fastmath,
107           # but I doubt we'd want to use the pure-python version).
108 #          Extension("allmydata.Crypto.PublicKey._fastmath",
109 #                    sources=["src/allmydata/Crypto/_fastmath.c"]),
110           ],
111       )