~ok2/nimbenland/nimbstor-1.0

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Oleksandr Kozachuk
  • Date: 2012-03-14 21:02:52 UTC
  • Revision ID: ddeus.sf@mailnull.com-20120314210252-5606p28xdxtupz2s
Better rolling checksum algorithm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
from setuptools import setup
5
5
from distutils.extension import Extension
6
6
from distutils.sysconfig import get_python_inc
7
 
from Cython.Distutils import build_ext
8
7
 
9
8
def read(fname):
10
9
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
13
12
if sys.version_info.major < 3 and sys.version_info.minor < 7:
14
13
    dependencies.append('argparse')
15
14
 
 
15
import sys
 
16
if 'setuptools.extension' in sys.modules:
 
17
    m = sys.modules['setuptools.extension']
 
18
    m.Extension.__dict__ = m._Extension.__dict__
 
19
 
16
20
setup(
17
 
    cmdclass = {'build_ext': build_ext},
18
21
    name = "nimbstor",
19
22
    version = "1.0.1-pre1",
20
23
    description = "Store incrementally, compressed and encrypted data failsafe in filesystems, sFTP, WebDAV, IMAP or other backends.",
25
28
    packages = ['nimbstor',],
26
29
    long_description = read('README'),
27
30
    install_requires = dependencies,
 
31
    setup_requires = ['setuptools_cython'],
28
32
    scripts = ["nimbstor/nimbtar"],
29
33
    ext_modules = [Extension("nimbstor.optimized", ["nimbstor/optimized.pyx"])],
30
34
    classifiers = [