3 # zfec -- a fast C implementation of Reed-Solomon erasure coding with
4 # command-line, C, and Python interfaces
6 # Copyright (C) 2007 Allmydata, Inc.
7 # Author: Zooko Wilcox-O'Hearn
8 # mailto:zooko@zooko.com
10 # This file is part of zfec.
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.
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.
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.
29 from setuptools import Extension, setup
37 extra_compile_args.append("-std=c99")
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')
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",
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',
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),],