forked from valeoai/LightConvPoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·36 lines (34 loc) · 1.04 KB
/
setup.py
File metadata and controls
executable file
·36 lines (34 loc) · 1.04 KB
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
from setuptools import find_packages, setup
from torch.utils import cpp_extension
import sys
print(sys.argv)
print('\n\n\n')
# if "--nocompile" in sys.argv:
print("LIGHTCONVPOINT -- PYTHON MODULES")
ext_modules=[]
cmdclass={}
# else:
# print("LIGHTCONVPOINT -- COMPILING CPP MODULES")
# ext_modules=[
# cpp_extension.CppExtension(
# "lightconvpoint.knn_c_func",
# [
# "lightconvpoint/src/knn.cxx",
# "lightconvpoint/src/knn_bind.cxx",
# "lightconvpoint/src/knn_random.cxx",
# "lightconvpoint/src/knn_farthest.cxx",
# "lightconvpoint/src/knn_convpoint.cxx",
# "lightconvpoint/src/knn_quantized.cxx",
# ],
# extra_compile_args=["-fopenmp"],
# extra_link_args=["-fopenmp"],
# )
# ]
# cmdclass={"build_ext": cpp_extension.BuildExtension}
# sys.argv.remove("--compile")
setup(
name="lightconvpoint",
packages=find_packages(),
ext_modules=ext_modules,
cmdclass=cmdclass,
)