-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (28 loc) · 952 Bytes
/
setup.py
File metadata and controls
29 lines (28 loc) · 952 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
from Cython.Build import cythonize
from setuptools import Extension, setup
setup(
ext_modules=cythonize(
[
Extension(
"rusty_iterators.core.async_interface",
["rusty_iterators/core/async_interface.pyx"],
extra_compile_args=["-march=native", "-O3"],
libraries=["m"],
),
Extension(
"rusty_iterators.core.interface",
["rusty_iterators/core/interface.pyx"],
extra_compile_args=["-march=native", "-O3"],
libraries=["m"],
),
Extension(
"rusty_iterators.core.wrappers",
["rusty_iterators/core/wrappers.pyx"],
extra_compile_args=["-march=native", "-O3"],
libraries=["m"],
),
],
nthreads=5,
compiler_directives={"language_level": 3, "binding": True},
),
)