forked from lab-cosmo/torch_spex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (27 loc) · 851 Bytes
/
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
from setuptools import setup, find_packages
import sys
import subprocess
# Detecting if pytorch with or without CUDA support should be installed
try:
subprocess.check_output('nvidia-smi')
HAS_NVIDIA = True
except:
HAS_NVIDIA = False
if HAS_NVIDIA:
dependency_links = []
else:
dependency_links = ['https://download.pytorch.org/whl/cpu']
print("torch_spex setup info: Did not find NVIDIA card defaulting to CPU-only installation")
setup(
name='torch_spex',
packages = find_packages(),
install_requires=[
'sphericart[torch]@git+https://github.com/lab-cosmo/sphericart.git@ecf4145', # prebuild wheels don't work
'numpy',
'ase',
'torch',
'scipy',
'equistore@https://github.com/lab-cosmo/equistore/archive/c022fde.zip',
],
dependency_links = dependency_links
)