-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (61 loc) · 1.56 KB
/
setup.py
File metadata and controls
66 lines (61 loc) · 1.56 KB
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
import shutil
from Cython.Build import cythonize
from setuptools import Extension, setup
extra_compile_args = [
"-flto",
"-O3",
"-ffast-math",
"-fomit-frame-pointer",
"-funroll-loops",
]
extra_link_args = [
"-flto",
"-O3",
"-s",
]
if shutil.which("lld"):
extra_compile_args.append("-fuse-ld=lld")
extra_link_args.append("-fuse-ld=lld")
extensions = [
Extension(
"endcord_cython.media",
["endcord_cython/media.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
Extension(
"endcord_cython.search",
["endcord_cython/search.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
Extension(
"endcord_cython.tui",
["endcord_cython/tui.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
Extension(
"endcord_cython.formatter",
["endcord_cython/formatter.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
Extension(
"endcord_cython.color",
["endcord_cython/color.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
Extension(
"endcord_cython.pgcurses",
["endcord_cython/pgcurses.pyx"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
),
]
setup(
name="endcord",
packages=[],
ext_modules=cythonize(extensions, language_level=3),
)