2007-01-23 00:17:31 +00:00
#!/usr/bin/env python
2007-04-18 23:01:03 +00:00
# zfec -- a fast C implementation of Reed-Solomon erasure coding with
# command-line, C, and Python interfaces
2007-01-26 01:02:16 +00:00
#
# Copyright (C) 2007 Allmydata, Inc.
# Author: Zooko Wilcox-O'Hearn
# mailto:zooko@zooko.com
#
2007-04-18 16:19:00 +00:00
# This file is part of zfec.
2007-01-26 01:02:16 +00:00
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2007-01-23 00:17:31 +00:00
from distutils . core import Extension , setup
DEBUGMODE = False
# DEBUGMODE=True
extra_compile_args = [ ]
extra_link_args = [ ]
extra_compile_args . append ( " -std=c99 " )
undef_macros = [ ]
if DEBUGMODE :
extra_compile_args . append ( " -O0 " )
extra_compile_args . append ( " -g " )
2007-01-30 19:08:46 +00:00
extra_compile_args . append ( " -Wall " )
2007-01-23 00:17:31 +00:00
extra_link_args . append ( " -g " )
undef_macros . append ( ' NDEBUG ' )
2007-01-26 01:08:29 +00:00
trove_classifiers = [
" Development Status :: 4 - Beta " ,
" Environment :: No Input/Output (Daemon) " ,
" Intended Audience :: Developers " ,
" License :: OSI Approved :: GNU General Public License (GPL) " ,
" Natural Language :: English " ,
" Operating System :: OS Independent " ,
" Programming Language :: C " ,
" Programming Language :: Python " ,
" Topic :: System :: Archiving :: Backup " ,
]
2007-01-23 00:17:31 +00:00
2007-04-18 16:19:00 +00:00
setup ( name = ' zfec ' ,
2007-04-18 23:01:03 +00:00
version = ' 1.0.0a2 ' ,
summary = ' a fast C implementation of Reed-Solomon erasure coding with command-line, C, and Python interfaces ' ,
description = ' Erasure coding -- also called " forward error correction " -- is the generation of redundant blocks of information such that if some blocks are lost ( " erased " ) then the original data can be recovered from the remaining blocks. This package contains an optimized implementation along with command-line, C, and Python interfaces. ' ,
2007-01-23 00:17:31 +00:00
author = ' Zooko O \' Whielacronx ' ,
author_email = ' zooko@zooko.com ' ,
2007-04-18 16:19:00 +00:00
url = ' http://www.allmydata.com/source/zfec ' ,
2007-01-23 00:17:31 +00:00
license = ' GNU GPL ' ,
platform = ' Any ' ,
2007-04-18 19:18:12 +00:00
packages = [ ' zfec ' , ' zfec.util ' , ' zfec.test ' ] ,
2007-01-26 01:08:29 +00:00
classifiers = trove_classifiers ,
2007-04-18 23:01:03 +00:00
scripts = [ ' bin/zfec ' , ' bin/zunfec ' , ] ,
2007-04-18 19:18:12 +00:00
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 ) , ] ,
2007-01-23 00:17:31 +00:00
)