-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·57 lines (53 loc) · 1.75 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
#!/usr/bin/env python
"""
pyzopfli
======
Python bindings to zopfli
"""
from setuptools import setup, Extension
setup(
name='zopfli',
version='0.0.3',
author='Adam DePrince',
author_email='[email protected]',
description='Zopfli module for python',
long_description=__doc__,
py_modules = [
'zopfli',
'zopfli.gzip',
'zopfli.zlib',
],
ext_modules = [Extension('zopfli.zopfli',
opts = "-O2 -W -Wall -Wextra -ansi -pedantic -lm",
sources = [
'zopfli/blocksplitter.c',
'zopfli/cache.c',
'zopfli/deflate.c',
'zopfli/gzip_container.c',
'zopfli/squeeze.c',
'zopfli/hash.c',
'zopfli/katajainen.c',
'zopfli/lz77.c',
'zopfli/tree.c',
'zopfli/util.c',
'zopfli/zlib_container.c',
'zopfli/zopflimodule.c',
],
libraries = ['c']
)],
packages = ["zopfli"],
zip_safe=True,
license='ASL',
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: System :: Archiving :: Compression',
],
scripts = [
],
url = "https://github.com/wnyc/pyzopfli",
install_requires = [
]
)