-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (23 loc) · 675 Bytes
/
setup.py
File metadata and controls
25 lines (23 loc) · 675 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
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2025 Yakau Bubnou
# SPDX-FileType: SOURCE
from pathlib import Path
from setuptools import setup
from torch.utils.cpp_extension import CppExtension, BuildExtension
setup(
ext_modules=[
CppExtension(
name="torch_delaunay._C",
sources=[
"src/predicate.cc",
"src/sweephull.cc",
"src/triangle.cc",
"torch_delaunay/__bind__/python_module.cc",
],
include_dirs=[
str(Path.cwd() / "include"),
],
),
],
cmdclass={"build_ext": BuildExtension},
)