equal
deleted
inserted
replaced
75 extensions.append(make_cffi.ffi.distutils_extension()) |
75 extensions.append(make_cffi.ffi.distutils_extension()) |
76 install_requires.append("cffi>=%s" % MINIMUM_CFFI_VERSION) |
76 install_requires.append("cffi>=%s" % MINIMUM_CFFI_VERSION) |
77 |
77 |
78 version = None |
78 version = None |
79 |
79 |
80 with open("c-ext/python-zstandard.h", "r") as fh: |
80 with open("c-ext/python-zstandard.h") as fh: |
81 for line in fh: |
81 for line in fh: |
82 if not line.startswith("#define PYTHON_ZSTANDARD_VERSION"): |
82 if not line.startswith("#define PYTHON_ZSTANDARD_VERSION"): |
83 continue |
83 continue |
84 |
84 |
85 version = line.split()[2][1:-1] |
85 version = line.split()[2][1:-1] |
92 |
92 |
93 setup( |
93 setup( |
94 name="zstandard", |
94 name="zstandard", |
95 version=version, |
95 version=version, |
96 description="Zstandard bindings for Python", |
96 description="Zstandard bindings for Python", |
97 long_description=open("README.rst", "r").read(), |
97 long_description=open("README.rst").read(), |
98 url="https://github.com/indygreg/python-zstandard", |
98 url="https://github.com/indygreg/python-zstandard", |
99 author="Gregory Szorc", |
99 author="Gregory Szorc", |
100 author_email="gregory.szorc@gmail.com", |
100 author_email="gregory.szorc@gmail.com", |
101 license="BSD", |
101 license="BSD", |
102 classifiers=[ |
102 classifiers=[ |