forked from mariogeiger/se3cnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·35 lines (31 loc) · 1.36 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
34
35
# pylint: disable=not-callable, no-member, invalid-name, line-too-long, wildcard-import, unused-wildcard-import, missing-docstring
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
# python setup.py develop - if you wont to be able to execute from PyCharm (or similar IDE) - places .so file into se3cnn folder from which real_spherical_harmonics imports
# Or:
# python setup.py build_ext
# python setup.py install - PyCharm won't work, because it can't resolve import, but executable from terminal
ext_modules = [
CUDAExtension('se3cnn.real_spherical_harmonics',
sources=['src/real_spherical_harmonics/rsh_bind.cpp',
'src/real_spherical_harmonics/rsh_cuda.cu'],
extra_compile_args={'cxx': ['-std=c++14'],
'nvcc': ['-std=c++14']})
]
setup(
name='se3cnn',
url='https://github.com/mariogeiger/se3cnn',
install_requires=[
'scipy',
'lie_learn',
],
dependency_links=['https://github.com/AMLab-Amsterdam/lie_learn'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
ext_modules=ext_modules,
cmdclass={'build_ext': BuildExtension},
packages=find_packages(),
)