1from distutils.core import setup, Extension 2from Cython.Distutils import build_ext 3from version import get_git_version 4import sys 5 6bdelta_module = Extension( 7 "bdelta", 8 ["src/bdelta.pyx", "src/libbdelta.cpp"], 9 define_macros = [('TOKEN_SIZE', '2')], 10 extra_compile_args = ['/EHsc'] if sys.platform == 'win32' else None 11) 12 13setup( 14 name = 'BDelta', 15 version = get_git_version(), 16 description = 'Python Bindings for BDelta', 17 author = 'John Whitney', 18 author_email = 'jjw@deltup.org', 19 url = 'http://bdelta.org', 20 cmdclass = {'build_ext': build_ext}, 21 ext_modules = [bdelta_module] 22) 23