-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (36 loc) · 1.13 KB
/
setup.py
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
from setuptools import setup
from distutils.core import Extension
setup(
ext_modules= [
Extension(
"subsets._subsets",
sources=[
"./subsets/subsets.i",
"./subsets/BitSet.cpp",
"./subsets/DenseSet.cpp",
"./subsets/DenseBox.cpp",
"./subsets/DenseTernary.cpp",
],
swig_opts=[
"-c++",
"-DSWIGWORDSIZE64", # https://github.com/swig/swig/issues/568
],
include_dirs=[
"./subsets/",
],
depends=[
"./subsets/common.hpp",
"./subsets/hackycpp.hpp",
"./subsets/Sweep.hpp",
"./subsets/BitSet.hpp",
"./subsets/DenseSet.hpp",
"./subsets/DenseBox.hpp",
"./subsets/ternary.hpp",
"./subsets/Sweep3.hpp",
"./subsets/DenseTernary.hpp",
],
extra_compile_args=["-std=c++2a", "-O3"],
extra_link_args=["-Wl,-soname,python_subsets.so"],
),
]
)