-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (30 loc) · 678 Bytes
/
Copy pathsetup.py
File metadata and controls
32 lines (30 loc) · 678 Bytes
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
from setuptools import setup, Extension
from Cython.Build import cythonize
extensions = [
Extension(
"bluebark_lite",
["bluebark_lite.pyx"],
extra_compile_args=[
"-O3",
"-mcpu=cortex-a53",
"-ffast-math",
"-ftree-vectorize",
"-fomit-frame-pointer"
],
extra_link_args=[
"-flto"
],
)
]
setup(
name="BlueBark DSP Lite",
ext_modules=cythonize(
extensions,
compiler_directives={
"language_level": "3",
"boundscheck": False,
"wraparound": False,
"cdivision": True
}
),
)