3 # Allmydata Tahoe -- secure, distributed storage grid
5 # Copyright (C) 2007 Allmydata, Inc.
7 # This file is part of tahoe.
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.
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/.
24 from setuptools import Extension, setup
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",
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",
58 VERSIONFILE = "src/allmydata/_version.py"
60 if os.path.exists(VERSIONFILE):
61 VSRE = re.compile("^verstr = ['\"]([^'\"]*)['\"]", re.M)
62 verstrline = open(VERSIONFILE, "rt").read()
63 mo = VSRE.search(verstrline)
67 print "unable to find version in src/allmydata/_version.py"
68 raise RuntimeError("if _version.py exists, it must be well-formed")
72 """Welcome to the AllMyData "tahoe" project. This project implements a
73 secure, distributed, fault-tolerant storage grid.
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."""
79 setup(name='allmydata-tahoe',
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/',
87 packages=["allmydata", "allmydata.test", "allmydata.util",
89 "allmydata.Crypto", "allmydata.Crypto.Cipher",
90 "allmydata.Crypto.Hash", "allmydata.Crypto.Util",
91 #"allmydata.Crypto.PublicKey",
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", "nevow"],
100 dependency_links=["http://allmydata.org/trac/tahoe/wiki/Dependencies",
101 # this form is used when the unpacked source
102 # distribution is copied into our tree:
103 #"file:misc/dependencies/zfec-1.0.2/"
104 # and this form is used when we provide a tarball
105 #"file:misc/dependencies/zfec-1.0.2.tar.gz",
106 # The file: URL can start with either 'misc' or
107 # './misc' to get a relative path.
110 Extension("allmydata.Crypto.Cipher.AES",
111 include_dirs=["src/allmydata/Crypto"],
112 sources=["src/allmydata/Crypto/AES.c"]),
113 Extension("allmydata.Crypto.Hash.SHA256",
114 include_dirs=["src/allmydata/Crypto"],
115 sources=["src/allmydata/Crypto/SHA256.c"]),
116 # _fastmath requires gmp. Since we're not using rsa yet, hold off
117 # on requiring this. (note that RSA.py doesn't require _fastmath,
118 # but I doubt we'd want to use the pure-python version).
119 # Extension("allmydata.Crypto.PublicKey._fastmath",
120 # sources=["src/allmydata/Crypto/_fastmath.c"]),