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 tree:
89 #"file:misc/dependencies/zfec-1.0.2/"
90 # and this form is used when we provide a tarball
91 # "file:misc/dependencies/zfec-1.0.2.tar.gz",
92 # The file: URL can start with either 'misc' or './misc' to get a relative path.
94 dependency_tarballs=[ os.path.join("misc", "dependencies", fn) for fn in os.listdir(os.path.join("misc", "dependencies")) if fn.endswith(".tar.gz") ]
96 dependency_links=["http://allmydata.org/trac/tahoe/wiki/Dependencies"] + dependency_tarballs
98 setup(name='allmydata-tahoe',
100 description='secure, distributed storage grid',
101 long_description=LONG_DESCRIPTION,
102 author='Allmydata, Inc.',
103 author_email='tahoe-dev@allmydata.org',
104 url='http://allmydata.org/',
106 packages=["allmydata", "allmydata.test", "allmydata.util",
108 "allmydata.Crypto", "allmydata.Crypto.Cipher",
109 "allmydata.Crypto.Hash", "allmydata.Crypto.Util",
110 #"allmydata.Crypto.PublicKey",
112 package_dir={ "allmydata": "src/allmydata",},
113 scripts = ["bin/allmydata-tahoe"],
114 package_data={ 'allmydata': ['web/*.xhtml', 'web/*.html', 'web/*.css'] },
115 classifiers=trove_classifiers,
116 test_suite="allmydata.test",
117 install_requires=["zfec >= 1.0.3",
118 "foolscap >= 0.1.6", "simplejson >= 1.4",
119 #"nevow", # we need nevow, but it doesn't seem to be
120 # installable by easy_install
122 dependency_links=dependency_links,
124 Extension("allmydata.Crypto.Cipher.AES",
125 include_dirs=["src/allmydata/Crypto"],
126 sources=["src/allmydata/Crypto/AES.c"]),
127 Extension("allmydata.Crypto.Hash.SHA256",
128 include_dirs=["src/allmydata/Crypto"],
129 sources=["src/allmydata/Crypto/SHA256.c"]),
130 # _fastmath requires gmp. Since we're not using rsa yet, hold off
131 # on requiring this. (note that RSA.py doesn't require _fastmath,
132 # but I doubt we'd want to use the pure-python version).
133 # Extension("allmydata.Crypto.PublicKey._fastmath",
134 # sources=["src/allmydata/Crypto/_fastmath.c"]),
136 zip_safe=False, # We prefer unzipped for easier access.