zfec: make it Python 2.4-compatible (but also it requires setuptools again)
This commit is contained in:
parent
a1aeda0ef8
commit
fdd8fe7cc1
|
@ -26,7 +26,7 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
from distutils.core import Extension, setup
|
from setuptools import Extension, find_packages, setup
|
||||||
|
|
||||||
DEBUGMODE=False
|
DEBUGMODE=False
|
||||||
# DEBUGMODE=True
|
# DEBUGMODE=True
|
||||||
|
@ -66,9 +66,9 @@ setup(name='zfec',
|
||||||
url='http://allmydata.org/source/zfec',
|
url='http://allmydata.org/source/zfec',
|
||||||
license='GNU GPL',
|
license='GNU GPL',
|
||||||
platform='Any',
|
platform='Any',
|
||||||
packages=['zfec', 'zfec.cmdline', 'zfec.util', 'zfec.test'],
|
packages=find_packages(),
|
||||||
classifiers=trove_classifiers,
|
classifiers=trove_classifiers,
|
||||||
entry_points = { 'console_scripts': [ 'zfec = zfec.cmdline.zfec:main', 'zunfec = zfec.cmdline.zunfec:main' ] },
|
entry_points = { 'console_scripts': [ 'zfec = zfec.cmdline_zfec:main', 'zunfec = zfec.cmdline_zunfec:main' ] },
|
||||||
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),],
|
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),],
|
||||||
test_suite="zfec.test.test_zfec",
|
test_suite="zfec.test.test_zfec",
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,5 +17,5 @@ __version__ = Version("1.0.0a5-1-STABLE")
|
||||||
__sources__ = ["http://allmydata.com/source/zfec",]
|
__sources__ = ["http://allmydata.com/source/zfec",]
|
||||||
|
|
||||||
from _fec import Encoder, Decoder, Error
|
from _fec import Encoder, Decoder, Error
|
||||||
import filefec
|
import filefec, cmdline_zfec, cmdline_zunfec
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from ..util import argparse
|
from util import argparse
|
||||||
from .. import filefec
|
import filefec
|
||||||
|
|
||||||
from ..zfec import __version__ as libversion
|
from zfec import __version__ as libversion
|
||||||
from ..util.version import Version
|
from util.version import Version
|
||||||
__version__ = Version("1.0.0a1-0-STABLE")
|
__version__ = Version("1.0.0a1-0-STABLE")
|
||||||
|
|
||||||
def main():
|
def main():
|
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
from ..util import argparse
|
from util import argparse
|
||||||
from .. import filefec
|
import filefec
|
||||||
|
|
||||||
from ..zfec import __version__ as libversion
|
from zfec import __version__ as libversion
|
||||||
from ..util.version import Version
|
from util.version import Version
|
||||||
__version__ = Version("1.0.0a1-0-STABLE")
|
__version__ = Version("1.0.0a1-0-STABLE")
|
||||||
|
|
||||||
def main():
|
def main():
|
Loading…
Reference in New Issue