-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·51 lines (41 loc) · 1.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import logging
import subprocess
from setuptools import setup
import torch
if torch.version.cuda is None:
cuda_v = "+cpu"
else:
cuda_v = f"+cu{torch.version.cuda.replace('.', '')}"
torch_v = torch.__version__.split('.')
torch_v = '.'.join(torch_v[:-2] + ['0'])
def system(command: str):
output = subprocess.check_output(command, shell=True)
logging.info(output)
system(
f'pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-{torch_v}{cuda_v}.html')
system(
f'pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-{torch_v}{cuda_v}.html')
system(
f'pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-{torch_v}{cuda_v}.html')
system(
f'pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-{torch_v}{cuda_v}.html')
install_requires = [
'gym',
'num2words',
'beautifulsoup4',
'networkx',
'lxml',
'google-cloud-storage',
'pandas',
'torch-geometric'
]
setup(
name='NerveNet',
version='1.0.0',
description='Implementation of NerveNet for use with PyTorch and StableBaselines3',
author='Tobias Schmidt, Hannes Stärk',
author_email='tsbaunatal@gmail.com',
packages=['NerveNet'],
install_requires=install_requires,
zip_safe=False,
)