-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
33 lines (32 loc) · 1.18 KB
/
setup.py
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
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
import os
setup(
name="lagomorph",
author="Jacob Hinkle",
author_email="[email protected]",
url="https://github.com/jacobhinkle/lagomorph",
keywords="medical-imaging computation-anatomy image-registration computer-vision pytorch cuda",
packages=["lagomorph"],
python_requires=">=3.6",
use_scm_version=True,
setup_requires=["pytest-runner", "setuptools_scm"],
install_requires=["torch>=1.0", "numpy", "h5py"],
tests_require=["pytest"],
cmdclass={"build_ext": BuildExtension},
entry_points={"console_scripts": ["lagomorph=lagomorph.__main__:main"]},
ext_modules=[
CUDAExtension(
"lagomorph_ext",
[
"lagomorph/extension/cpu/affine.cpp",
"lagomorph/extension/cuda/affine.cu",
"lagomorph/extension/cuda/diff.cu",
"lagomorph/extension/cuda/interp.cu",
"lagomorph/extension/cuda/metric.cu",
"lagomorph/extension/extension.cpp",
],
include_dirs=[os.path.abspath("lagomorph/extension/include")],
)
],
)