-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (17 loc) · 977 Bytes
/
Copy pathsetup.py
File metadata and controls
19 lines (17 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# coding: utf-8
from setuptools import Extension, setup
setup(ext_modules=[Extension(name="kelvin_model.kelvin_lib",
sources=["src/kelvin_model/src/kelvin_lib.cpp"],
include_dirs=["/usr/include/eigen3",
"src/kelvin_model/include"],
extra_compile_args=["-shared",
"-fPIC",
"-O3",
"-march=native",
"-ffast-math",
"-fno-finite-math-only",
"-fopenmp"],
extra_link_args=["-fopenmp"],
language="c++",
optional=False,
py_limited_api=False)])