-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (27 loc) · 843 Bytes
/
setup.py
File metadata and controls
29 lines (27 loc) · 843 Bytes
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
from glob import glob
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension, ParallelCompile, naive_recompile, build_ext
ext_modules = [
Pybind11Extension(
"dscribe.ext",
sorted(glob("dscribe/ext/*.cpp")),
include_dirs=[
# Path to Eigen headers
"dependencies/eigen",
# Path to own headers
"dscribe/ext",
],
cxx_std=11,
extra_compile_args=[
"-O3", # O3 optimizations
"-I dependencies/eigen/Eigen/", # Eigen dependency
],
),
]
with ParallelCompile("NPY_NUM_BUILD_JOBS", needs_recompile=naive_recompile):
setup(
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
zip_safe=False,
python_requires=">=3.9",
)