]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - setup.py
setup.py: remove nevow dependency: we need it, but easy_install can't install it
[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 setuptools 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 src/allmydata/_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       install_requires=["zfec >= 1.0.3",
99                         "foolscap >= 0.1.6", "simplejson",
100                         #"nevow", # we need nevow, but it doesn't seem to be
101                                   # installable by easy_install
102                         ],
103       dependency_links=["http://allmydata.org/trac/tahoe/wiki/Dependencies",
104                         #  this form is used when the unpacked source
105                         #  distribution is copied into our tree:
106                         #"file:misc/dependencies/zfec-1.0.2/"
107                         #  and this form is used when we provide a tarball
108                         #"file:misc/dependencies/zfec-1.0.2.tar.gz",
109                         # The file: URL can start with either 'misc' or
110                         # './misc' to get a relative path.
111                         ],
112       ext_modules=[
113           Extension("allmydata.Crypto.Cipher.AES",
114                     include_dirs=["src/allmydata/Crypto"],
115                     sources=["src/allmydata/Crypto/AES.c"]),
116           Extension("allmydata.Crypto.Hash.SHA256",
117                     include_dirs=["src/allmydata/Crypto"],
118                     sources=["src/allmydata/Crypto/SHA256.c"]),
119           # _fastmath requires gmp. Since we're not using rsa yet, hold off
120           # on requiring this. (note that RSA.py doesn't require _fastmath,
121           # but I doubt we'd want to use the pure-python version).
122 #          Extension("allmydata.Crypto.PublicKey._fastmath",
123 #                    sources=["src/allmydata/Crypto/_fastmath.c"]),
124           ],
125       )