]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blob - zfec/setup.py
change the 'ez_setup.py' script to have distinct desired & minimum required versions...
[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), you may
15 # delay the fulfillment of this obligation for up to 12 months.  See the file
16 # COPYING for details.
17 #
18 # If you would like to inquire about a commercial relationship with Allmydata,
19 # Inc., please contact partnerships@allmydata.com and visit
20 # http://allmydata.com/.
21
22 # This program is distributed in the hope that it will be useful, but WITHOUT
23 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
25 # more details.
26
27 from ez_setup import use_setuptools
28 use_setuptools(min_version='0.6a9')
29
30 from setuptools import Extension, find_packages, setup
31
32 DEBUGMODE=False
33 # DEBUGMODE=True
34
35 extra_compile_args=[]
36 extra_link_args=[]
37
38 extra_compile_args.append("-std=c99")
39
40 undef_macros=[]
41
42 if DEBUGMODE:
43     extra_compile_args.append("-O0")
44     extra_compile_args.append("-g")
45     extra_compile_args.append("-Wall")
46     extra_link_args.append("-g")
47     undef_macros.append('NDEBUG')
48
49 trove_classifiers=[
50     "Development Status :: 5 - Production/Stable",
51     "Environment :: Console",
52     "License :: OSI Approved :: GNU General Public License (GPL)", 
53     "License :: DFSG approved",
54     "Intended Audience :: Developers", 
55     "Intended Audience :: End Users/Desktop",
56     "Intended Audience :: System Administrators",
57     "Operating System :: Microsoft",
58     "Operating System :: Microsoft :: Windows",
59     "Operating System :: Unix",
60     "Operating System :: POSIX :: Linux",
61     "Operating System :: POSIX",
62     "Operating System :: MacOS :: MacOS X",
63     "Operating System :: Microsoft :: Windows :: Windows NT/2000",
64     "Operating System :: OS Independent", 
65     "Natural Language :: English", 
66     "Programming Language :: C", 
67     "Programming Language :: Python", 
68     "Topic :: Utilities",
69     "Topic :: System :: Systems Administration",
70     "Topic :: System :: Filesystems",
71     "Topic :: System :: Distributed Computing",
72     "Topic :: Software Development :: Libraries",
73     "Topic :: Communications :: Usenet News",
74     "Topic :: System :: Archiving :: Backup", 
75     "Topic :: System :: Archiving :: Mirroring", 
76     "Topic :: System :: Archiving", 
77     ]
78
79 setup(name='zfec',
80       version='1.0.0',
81       description='a fast erasure code with command-line, C, and Python interfaces',
82       long_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.',
83       author='Zooko O\'Whielacronx',
84       author_email='zooko@zooko.com',
85       url='http://allmydata.org/source/zfec',
86       license='GNU GPL',
87       packages=find_packages(),
88       classifiers=trove_classifiers,
89       entry_points = { 'console_scripts': [ 'zfec = zfec.cmdline_zfec:main', 'zunfec = zfec.cmdline_zunfec:main' ] },
90       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),],
91       test_suite="zfec.test",
92       )