-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (32 loc) · 874 Bytes
/
Copy pathsetup.py
File metadata and controls
35 lines (32 loc) · 874 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
33
34
35
"""Setup file for Cython compilation."""
import numpy as np
from Cython.Build import cythonize
from setuptools import Extension, setup
extensions = [
Extension(
"rnd_extraction.cy_kernels",
["rnd_extraction/cy_kernels.pyx"],
include_dirs=[np.get_include()],
extra_compile_args=["-O3", "-march=native", "-ffast-math"],
language="c",
),
Extension(
"mv_rnd.cbrapipe._fast",
["mv_rnd/cbrapipe/_fast.pyx"],
include_dirs=[np.get_include()],
extra_compile_args=["-O3", "-march=native"],
language="c",
),
]
setup(
ext_modules=cythonize(
extensions,
compiler_directives={
"language_level": "3",
"boundscheck": False,
"wraparound": False,
"cdivision": True,
"initializedcheck": False,
},
),
)