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 import sys, re, os.path
25 from ez_setup import use_setuptools
29 if 'cygwin' in sys.platform.lower():
33 use_setuptools(min_version=min_version, download_base="file:misc/dependencies/", download_delay=0)
35 from setuptools import Extension, find_packages, setup
37 from calcdeps import install_requires, dependency_links
40 "Development Status :: 3 - Alpha",
41 "Environment :: Console",
42 "Environment :: Web Environment",
43 # "License :: Free Software (GPL variant)", # Not a real acceptable value. I guess this means we really need to get our licence DFSG/OSI approved.
44 # "License :: Open Source (GPL variant)", # Not a real acceptable value. I guess this means we really need to get our licence DFSG/OSI approved.
45 "Intended Audience :: Developers",
46 "Intended Audience :: End Users/Desktop",
47 "Intended Audience :: System Administrators",
48 "Operating System :: Microsoft",
49 "Operating System :: Microsoft :: Windows",
50 "Operating System :: Unix",
51 "Operating System :: POSIX :: Linux",
52 "Operating System :: POSIX",
53 "Operating System :: MacOS :: MacOS X",
54 "Operating System :: Microsoft :: Windows :: Windows NT/2000",
55 "Operating System :: OS Independent",
56 "Natural Language :: English",
57 "Programming Language :: C",
58 "Programming Language :: Python",
60 "Topic :: System :: Systems Administration",
61 "Topic :: System :: Filesystems",
62 "Topic :: System :: Distributed Computing",
63 "Topic :: Software Development :: Libraries",
64 "Topic :: Communications :: Usenet News",
65 "Topic :: System :: Archiving :: Backup",
66 "Topic :: System :: Archiving :: Mirroring",
67 "Topic :: System :: Archiving",
71 # Build _version.py before trying to extract a version from it. If we aren't
72 # running from a darcs checkout, this will leave any pre-existing _version.py
75 os.system(" ".join([sys.executable,
76 "misc/make-version.py",
78 '"src/allmydata/_version.py"', # cygwin vs slashes
82 VERSIONFILE = "src/allmydata/_version.py"
84 if os.path.exists(VERSIONFILE):
85 VSRE = re.compile("^verstr = ['\"]([^'\"]*)['\"]", re.M)
86 verstrline = open(VERSIONFILE, "rt").read()
87 mo = VSRE.search(verstrline)
91 print "unable to find version in src/allmydata/_version.py"
92 raise RuntimeError("if _version.py exists, it must be well-formed")
96 """Welcome to the AllMyData "tahoe" project. This project implements a secure,
97 distributed, fault-tolerant storage grid under a Free Software licence.
99 The basic idea is that the data in this storage grid is spread over all
100 participating nodes, using an algorithm that can recover the data even if a
101 majority of the nodes are no longer available."""
104 setup(name='allmydata-tahoe',
106 description='secure, distributed storage grid',
107 long_description=LONG_DESCRIPTION,
108 author='Allmydata, Inc.',
109 author_email='tahoe-dev@allmydata.org',
110 url='http://allmydata.org/',
111 license='GNU GPL v2 or later, plus transitive 12 month grace period; http://allmydata.org/trac/tahoe/browser/COPYING',
112 package_dir = {'':'src'},
113 packages=find_packages("src"),
114 classifiers=trove_classifiers,
115 test_suite="allmydata.test",
116 install_requires=install_requires,
117 include_package_data=True,
118 setup_requires=["setuptools_darcs >= 1.0.5",],
119 dependency_links=dependency_links,
120 entry_points = { 'console_scripts': [ 'tahoe = allmydata.scripts.runner:run' ] },
122 Extension("allmydata.Crypto.Cipher.AES",
123 include_dirs=["src/allmydata/Crypto"],
124 sources=["src/allmydata/Crypto/AES.c"]),
126 zip_safe=False, # We prefer unzipped for easier access.