-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (20 loc) · 758 Bytes
/
setup.py
File metadata and controls
26 lines (20 loc) · 758 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
from setuptools import setup, find_packages
INSTALL_REQUIREMENTS = ['numpy', 'trimesh', 'torch', 'matplotlib', 'h5py']
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
ext_modules=[ CUDAExtension('ctdr.cuda.diff_fp', [
'ctdr/cuda/diff_fp.cpp',
'ctdr/cuda/diff_fp_for.cu',
'ctdr/cuda/diff_fp_back.cu'
]) ]
if __name__ == '__main__':
# print(find_packages(exclude=( 'test')))
setup(
description='CTDR"',
version='0.9.0',
name='ctdrm', # not module name
packages=find_packages(include=['ctdr','ctdr.*']),
zip_safe=True,
install_requires=INSTALL_REQUIREMENTS,
ext_modules=ext_modules,
cmdclass = {'build_ext': BuildExtension}
)