3 # zfec -- fast forward error correction library with Python interface
5 # Copyright (C) 2007 Allmydata, Inc.
6 # Author: Zooko Wilcox-O'Hearn
8 # This file is part of zfec.
10 # This program is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by the Free
12 # Software Foundation; either version 2 of the License, or (at your option)
13 # any later version, with the added permission that, if you become obligated
14 # to release a derived work under this licence (as per section 2.b of the
15 # GPL), you may delay the fulfillment of this obligation for up to 12 months.
17 # If you would like to inquire about a commercial relationship with Allmydata,
18 # Inc., please contact partnerships@allmydata.com and visit
19 # http://allmydata.com/.
21 # This program is distributed in the hope that it will be useful, but WITHOUT
22 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
26 from setuptools import Extension, find_packages, setup
34 extra_compile_args.append("-std=c99")
39 extra_compile_args.append("-O0")
40 extra_compile_args.append("-g")
41 extra_compile_args.append("-Wall")
42 extra_link_args.append("-g")
43 undef_macros.append('NDEBUG')
46 "Development Status :: 4 - Beta",
47 "Environment :: No Input/Output (Daemon)",
48 "Intended Audience :: Developers",
49 "License :: OSI Approved :: GNU General Public License (GPL)",
50 "Natural Language :: English",
51 "Operating System :: OS Independent",
52 "Programming Language :: C",
53 "Programming Language :: Python",
54 "Topic :: System :: Archiving :: Backup",
59 summary='a fast erasure code with command-line, C, and Python interfaces',
60 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.',
61 author='Zooko O\'Whielacronx',
62 author_email='zooko@zooko.com',
63 url='http://allmydata.org/source/zfec',
66 packages=find_packages(),
67 classifiers=trove_classifiers,
68 entry_points = { 'console_scripts': [ 'zfec = zfec.cmdline_zfec:main', 'zunfec = zfec.cmdline_zunfec:main' ] },
69 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),],
70 test_suite="zfec.test",