-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
83 lines (77 loc) · 1.91 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
from setuptools import Extension, setup
# g++ -O3 -march=native -Wall -shared -std=c++14 -fPIC $(python3 -m pybind11 --includes) example9.cpp -o example9$(python3-config --extension-suffix)
ext1 = Extension(
"process_samples",
language="c++",
sources=[os.path.join("brahmap", "src", "process_samples.cpp")],
include_dirs=[
os.path.join("brahmap", "src"),
os.path.join("extern", "pybind11", "include"),
],
define_macros=None,
extra_compile_args=[
"-O3",
# "-march=native",
"-Wall",
"-shared",
"-std=c++14",
"-fPIC",
"-lm",
],
)
ext2 = Extension(
"repixelize",
sources=[os.path.join("brahmap", "src", "repixelize.cpp")],
include_dirs=[
os.path.join("brahmap", "src"),
os.path.join("extern", "pybind11", "include"),
],
define_macros=None,
extra_compile_args=[
"-O3",
# "-march=native",
"-Wall",
"-shared",
"-std=c++14",
"-fPIC",
],
)
ext3 = Extension(
"SparseLO_tools",
sources=[os.path.join("brahmap", "src", "SparseLO_tools.cpp")],
include_dirs=[
os.path.join("brahmap", "src"),
os.path.join("extern", "pybind11", "include"),
],
define_macros=None,
extra_compile_args=[
"-O3",
# "-march=native",
"-Wall",
"-shared",
"-std=c++14",
"-fPIC",
],
)
ext4 = Extension(
"BlkDiagPrecondLO_tools",
sources=[os.path.join("brahmap", "src", "BlkDiagPrecondLO_tools.cpp")],
include_dirs=[
os.path.join("brahmap", "src"),
os.path.join("extern", "pybind11", "include"),
],
define_macros=None,
extra_compile_args=[
"-O3",
# "-march=native",
"-Wall",
"-shared",
"-std=c++14",
"-fPIC",
],
)
setup(
ext_modules=[ext1, ext2, ext3, ext4],
# include_package_data=True,
)