]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blob - zfec/setup.py
zfec: change URLs from allmydata.com to allmydata.org
[tahoe-lafs/zfec.git] / zfec / setup.py
1 #!/usr/bin/env python
2
3 # zfec -- a fast C implementation of Reed-Solomon erasure coding with
4 # command-line, C, and Python interfaces
5
6 # Copyright (C) 2007 Allmydata, Inc.
7 # Author: Zooko Wilcox-O'Hearn
8 # mailto:zooko@zooko.com
9
10 # This file is part of zfec.
11
12 # This program is free software; you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by the Free
14 # Software Foundation; either version 2 of the License, or (at your option)
15 # any later version.  This package also comes with the added permission that,
16 # in the case that you are obligated to release a derived work under this
17 # licence (as per section 2.b of the GPL), you may delay the fulfillment of
18 # this obligation for up to 12 months.
19
20 # This program is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 # GNU General Public License for more details.
24
25 # You should have received a copy of the GNU General Public License
26 # along with this program; if not, write to the Free Software
27 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
28
29 from setuptools import Extension, setup
30
31 DEBUGMODE=False
32 # DEBUGMODE=True
33
34 extra_compile_args=[]
35 extra_link_args=[]
36
37 extra_compile_args.append("-std=c99")
38
39 undef_macros=[]
40
41 if DEBUGMODE:
42     extra_compile_args.append("-O0")
43     extra_compile_args.append("-g")
44     extra_compile_args.append("-Wall")
45     extra_link_args.append("-g")
46     undef_macros.append('NDEBUG')
47
48 trove_classifiers=[
49     "Development Status :: 4 - Beta", 
50     "Environment :: No Input/Output (Daemon)", 
51     "Intended Audience :: Developers", 
52     "License :: OSI Approved :: GNU General Public License (GPL)", 
53     "Natural Language :: English", 
54     "Operating System :: OS Independent", 
55     "Programming Language :: C", 
56     "Programming Language :: Python", 
57     "Topic :: System :: Archiving :: Backup", 
58     ]
59
60 setup(name='zfec',
61       version='1.0.0a4',
62       summary='a fast erasure code with command-line, C, and Python interfaces',
63       description='Fast, portable, programmable erasure coding a.k.a. "forward error correction": the generation of redundant blocks of information such that if some blocks are lost then the original data can be recovered from the remaining blocks.',
64       author='Zooko O\'Whielacronx',
65       author_email='zooko@zooko.com',
66       url='http://allmydata.org/source/zfec',
67       license='GNU GPL',
68       platform='Any',
69       packages=['zfec', 'zfec.cmdline', 'zfec.util', 'zfec.test'],
70       classifiers=trove_classifiers,
71       entry_points = { 'console_scripts': [ 'zfec = zfec.cmdline.zfec:main', 'zunfec = zfec.cmdline.zunfec:main' ] },
72       ext_modules=[Extension('_fec', ['zfec/fec.c', 'zfec/_fecmodule.c',], extra_link_args=extra_link_args, extra_compile_args=extra_compile_args, undef_macros=undef_macros),],
73       )