-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
40 lines (39 loc) · 1.27 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
from distutils.core import setup, Extension
setup(
name = "quicklz",
version = "1.5.0",
description="QuickLZ Bindings for Python",
author='Sergey Dryabzhinsky',
author_email='sergey.dryabzhinsky@gmail.com',
url='https://github.com/sergey-dryabzhinsky/python-quicklz',
ext_modules = [
Extension(
"quicklz",
["quicklz.c", "quicklzpy.c"],
extra_compile_args=[
"-O2",
"-std=c99",
"-Wall",
"-W",
"-Wundef",
# try fortification
# "-DFORTIFY_SOURCE=2", "-fstack-protector",
# try hard CPU optimization
# "-march=native",
# try Graphite
# "-floop-interchange", "-floop-block", "-floop-strip-mine", "-ftree-loop-distribution",
]
)
],
classifiers=[
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)