-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (25 loc) · 752 Bytes
/
setup.py
File metadata and controls
27 lines (25 loc) · 752 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
from setuptools import setup, Extension
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import find_packages
ext_modules = [
Pybind11Extension("m4mcore", [
"cpp/labels2meshes/MarchingCube.cpp",
"cpp/meshes/Mesh.cpp",
"cpp/meshes/TrianglesSoup.cpp",
"cpp/meshes/IndexedFaceSet.cpp",
"cpp/meshes/HalfEdges.cpp",
"src/meshes4mic/bindings/labels2meshes.cpp"
],
include_dirs=["include"]
),
]
setup(
name="m4mcore",
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
packages=find_packages(),
package_data={
'm4mcore': ['py.typed', 'stubs/**/*.pyi'],
},
include_package_data=True,
)