-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (28 loc) · 681 Bytes
/
setup.py
File metadata and controls
34 lines (28 loc) · 681 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
import sys
from setuptools import setup, Extension
from Cython.Build import cythonize
if sys.platform == "win32":
compile_args = ["/std:c++17", "/O2"]
else:
compile_args = ["-std=c++17", "-O3"]
extensions = [
Extension(
name="Ncore.tl",
sources=["src/Ncore/tl.pyx"],
extra_compile_args=compile_args,
language="c++",
)
]
setup(
ext_modules=cythonize(
extensions,
compiler_directives={
"language_level": "3",
"boundscheck": False,
"wraparound": False,
"cdivision": True,
"nonecheck": False,
"initializedcheck": False,
}
),
)