]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blob - zfec/setup.py
zfec v1.0.0b1-0-STABLE
[tahoe-lafs/zfec.git] / zfec / setup.py
1 #!/usr/bin/env python
2
3 # zfec -- fast forward error correction library with Python interface
4
5 # Copyright (C) 2007 Allmydata, Inc.
6 # Author: Zooko Wilcox-O'Hearn
7
8 # This file is part of zfec.
9
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.
16 #
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/.
20
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
24 # more details.
25
26 from setuptools import Extension, find_packages, setup
27
28 DEBUGMODE=False
29 # DEBUGMODE=True
30
31 extra_compile_args=[]
32 extra_link_args=[]
33
34 extra_compile_args.append("-std=c99")
35
36 undef_macros=[]
37
38 if DEBUGMODE:
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')
44
45 trove_classifiers=[
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", 
55     ]
56
57 setup(name='zfec',
58       version='1.0.0b1',
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',
64       license='GNU GPL',
65       platform='Any',
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",
71       )