/
setup.py
79 lines (65 loc) · 2.13 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
import os.path
from setuptools import setup, find_packages
def here(*paths):
return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths))
setup(
name="brotlipy",
version="0.1.0",
description="Python binding to the Brotli library",
long_description=open("README.rst").read(),
url="https://github.com/python-hyper/brotlipy/",
license="MIT",
author="Cory Benfield",
author_email="cory@lukasa.co.uk",
setup_requires=[
"cffi>=1.0.0",
],
install_requires=[
"cffi>=1.0.0",
],
cffi_modules=["src/brotli/build.py:ffi"],
packages=find_packages('src'),
package_dir={'': 'src'},
ext_package="brotli",
libraries=[
("libbrotli", {
"include_dirs": [
here("libbrotli/enc"),
here("libbrotli/dec"),
],
"sources": [
here("libbrotli/", s) for s in [
"dec/bit_reader.c",
"dec/decode.c",
"dec/huffman.c",
"dec/state.c",
"dec/streams.c",
"dec/dictionary.c",
"enc/backward_references.cc",
"enc/histogram.cc",
"enc/block_splitter.cc",
"enc/literal_cost.cc",
"enc/brotli_bit_stream.cc",
"enc/metablock.cc",
"enc/encode.cc",
"enc/static_dict.cc",
"enc/encode_parallel.cc",
"enc/streams.cc",
"enc/entropy_encode.cc"
]
],
}),
],
zip_safe=False,
classifiers=[
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
]
)