-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge TorchScript tests with regular tests (#32)
Co-authored-by: Luthaf <[email protected]> Co-authored-by: frostedoyster <[email protected]>
- Loading branch information
1 parent
8dba0a7
commit 7e14342
Showing
3 changed files
with
37 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
from setuptools import setup, find_packages | ||
import sys | ||
import subprocess | ||
|
||
from setuptools import find_packages, setup | ||
|
||
# Detecting if pytorch with or without CUDA support should be installed | ||
try: | ||
subprocess.check_output('nvidia-smi') | ||
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") | ||
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(), | ||
name="torch_spex", | ||
packages=find_packages(), | ||
install_requires=[ | ||
'sphericart[torch] @ git+https://github.com/lab-cosmo/sphericart.git@99761b0', # pre-built wheels don't work | ||
'numpy', | ||
'ase', | ||
'torch', | ||
'scipy', | ||
'metatensor[torch] @ https://github.com/lab-cosmo/metatensor/archive/0436e27.zip', | ||
"sphericart[torch] @ git+https://github.com/lab-cosmo/sphericart.git@ecf4145", # pre-built wheels don't work | ||
"numpy", | ||
"ase", | ||
"torch", | ||
"scipy", | ||
"metatensor[torch]", | ||
], | ||
dependency_links = dependency_links | ||
dependency_links=dependency_links, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.