-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
27 lines (24 loc) · 867 Bytes
/
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
from setuptools import Extension, setup
import numpy
__version__ = "1.2.3"
setup(
ext_modules=[
Extension(
"mt2._mt2",
["src/_mt2/main.cpp"],
define_macros=[
# Pass in the version info so we can expose it in the extension.
("VERSION_INFO", __version__),
# For reasons explained in lester_mt2_bisect_v7.h, we need to manually
# enable some inlining optimisations.
("ENABLE_INLINING", "1"),
# Copyright printing is disabled here, since we include the necessary
# citation information elsewhere.
("DISABLE_COPYRIGHT_PRINTING", "1"),
],
include_dirs=[numpy.get_include()],
language="c++",
extra_compile_args=["-std=c++11"],
),
],
)