-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (27 loc) · 1.04 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
import os
from numpy.distutils.core import setup
from numpy.distutils.core import Extension
depends = ["source/graph.hpp", "source/ngt.hpp"]
extra_compile_args = ["-Wall", "-Wextra", "-g", "-O2", '-funroll-loops', "-mtune=native", "-std=c++0x"]
extra_link_args = []
include_dirs = ["source/"]
#extra_link_args = ["-lprofiler"]
setup(
ext_modules=[Extension("kmc_rates/ngt", ["kmc_rates/ngt.cpp"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
include_dirs=include_dirs,
language="c++", depends=depends,
),
]
)
#from distutils.core import setup
#from Cython.Build import cythonize
#
#ext_modules=cythonize(
# "ngt.pyx", # our Cython source
## sources=["source/graph.hpp", "source/ngt.hpp"], # additional source file(s)
# language="c++", # generate C++ code
# )
#
#setup(ext_modules=ext_modules)