-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (38 loc) · 1003 Bytes
/
Copy pathsetup.py
File metadata and controls
42 lines (38 loc) · 1003 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
30
31
32
33
34
35
36
37
38
39
40
41
42
import glob
from pybind11 import get_include
from pybind11.setup_helpers import Pybind11Extension
from setuptools import setup
matching_sources = glob.glob("cpp/src/matching/**/*.cpp", recursive=True)
ext_modules = [
Pybind11Extension(
"py4swiss.matching_computer",
[
"python_bindings/computer_bindings.cpp",
*matching_sources,
],
include_dirs=[
"cpp/include",
"cpp/include/matching",
"cpp/include/utility",
get_include(),
],
language="c++",
cxx_std=14,
),
Pybind11Extension(
"py4swiss.dynamicuint",
[
"python_bindings/dynamicuint_bindings.cpp",
*matching_sources,
],
include_dirs=[
"cpp/include",
"cpp/include/matching",
"cpp/include/utility",
get_include(),
],
language="c++",
cxx_std=14,
),
]
setup(ext_modules=ext_modules)