-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (36 loc) · 1.09 KB
/
setup.py
File metadata and controls
40 lines (36 loc) · 1.09 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
import platform
from setuptools import setup, Extension
from Cython.Build import cythonize
current_os = platform.system()
if current_os == "Windows":
extra_compile_args = ['/std:c++17', '/O2']
extra_link_args = []
else:
extra_compile_args = ['-O3', '-std=c++11']
extra_link_args = []
extensions = [
Extension(
name="anonlink.solving._multiparty_solving",
sources=["anonlink/solving/_multiparty_solving.pyx",
"anonlink/solving/_multiparty_solving_inner.cpp"],
include_dirs=["anonlink/solving"],
language="c++",
extra_compile_args=extra_compile_args,
extra_link_args=extra_compile_args,
define_macros=[('NDEBUG', None)]
),
Extension(
name="anonlink.similarities._dice",
sources=[
"anonlink/similarities/_dice.pyx"
],
include_dirs=["anonlink/similarities"],
language="c++",
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
define_macros=[('NDEBUG', None)]
)
]
setup(
ext_modules=cythonize(extensions),
)