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/.
23 from ez_setup import use_setuptools
25 if 'cygwin' in sys.platform.lower():
29 use_setuptools(min_version=min_version, download_base="file:misc/dependencies/")
31 from setuptools import Extension, setup
35 "Development Status :: 3 - Alpha",
36 "Environment :: Console",
37 "Environment :: Web Environment",
38 "License :: OSI Approved :: GNU General Public License (GPL)",
39 "License :: DFSG approved",
40 "Intended Audience :: Developers",
41 "Intended Audience :: End Users/Desktop",
42 "Intended Audience :: System Administrators",
43 "Operating System :: Microsoft",
44 "Operating System :: Microsoft :: Windows",
45 "Operating System :: Unix",
46 "Operating System :: POSIX :: Linux",
47 "Operating System :: POSIX",
48 "Operating System :: MacOS :: MacOS X",
49 "Operating System :: Microsoft :: Windows :: Windows NT/2000",
50 "Operating System :: OS Independent",
51 "Natural Language :: English",
52 "Programming Language :: C",
53 "Programming Language :: Python",
55 "Topic :: System :: Systems Administration",
56 "Topic :: System :: Filesystems",
57 "Topic :: System :: Distributed Computing",
58 "Topic :: Software Development :: Libraries",
59 "Topic :: Communications :: Usenet News",
60 "Topic :: System :: Archiving :: Backup",
61 "Topic :: System :: Archiving :: Mirroring",
62 "Topic :: System :: Archiving",
66 VERSIONFILE = "src/allmydata/_version.py"
68 if os.path.exists(VERSIONFILE):
69 VSRE = re.compile("^verstr = ['\"]([^'\"]*)['\"]", re.M)
70 verstrline = open(VERSIONFILE, "rt").read()
71 mo = VSRE.search(verstrline)
75 print "unable to find version in src/allmydata/_version.py"
76 raise RuntimeError("if _version.py exists, it must be well-formed")
80 """Welcome to the AllMyData "tahoe" project. This project implements a
81 secure, distributed, fault-tolerant storage grid.
83 The basic idea is that the data in this storage grid is spread over all
84 participating nodes, using an algorithm that can recover the data even if a
85 majority of the nodes are no longer available."""
88 # This form is used when the unpacked source distribution is copied into our
90 # "file:misc/dependencies/zfec-1.0.2/"
91 # and this form is used when we provide a tarball
92 # "file:misc/dependencies/zfec-1.0.2.tar.gz",
93 # The file: URL can start with either 'misc' or './misc' to get a relative path.
95 dependency_tarballs=[ "file:" + os.path.join("misc", "dependencies", fn)
96 for fn in os.listdir(os.path.join("misc", "dependencies"))
97 if fn.endswith(".tar.gz") ]
99 dependency_links=["http://allmydata.org/trac/tahoe/wiki/Dependencies"] + dependency_tarballs
101 setup(name='allmydata-tahoe',
103 description='secure, distributed storage grid',
104 long_description=LONG_DESCRIPTION,
105 author='Allmydata, Inc.',
106 author_email='tahoe-dev@allmydata.org',
107 url='http://allmydata.org/',
109 packages=["allmydata", "allmydata.test", "allmydata.util",
111 "allmydata.Crypto", "allmydata.Crypto.Cipher",
112 "allmydata.Crypto.Hash", "allmydata.Crypto.Util",
113 #"allmydata.Crypto.PublicKey",
115 package_dir={ "allmydata": "src/allmydata",},
116 scripts = ["bin/allmydata-tahoe"],
117 package_data={ 'allmydata': ['web/*.xhtml', 'web/*.html', 'web/*.css'] },
118 classifiers=trove_classifiers,
119 test_suite="allmydata.test",
120 install_requires=["zfec >= 1.0.3",
123 #"nevow", # we need nevow, but it doesn't seem to be
124 # installable by easy_install
126 dependency_links=dependency_links,
128 Extension("allmydata.Crypto.Cipher.AES",
129 include_dirs=["src/allmydata/Crypto"],
130 sources=["src/allmydata/Crypto/AES.c"]),
131 Extension("allmydata.Crypto.Hash.SHA256",
132 include_dirs=["src/allmydata/Crypto"],
133 sources=["src/allmydata/Crypto/SHA256.c"]),
134 # _fastmath requires gmp. Since we're not using rsa yet, hold off
135 # on requiring this. (note that RSA.py doesn't require _fastmath,
136 # but I doubt we'd want to use the pure-python version).
137 # Extension("allmydata.Crypto.PublicKey._fastmath",
138 # sources=["src/allmydata/Crypto/_fastmath.c"]),
140 zip_safe=False, # We prefer unzipped for easier access.