Skip to content

Commit 5bd4d70

Browse files
committed
Allow installing only tf or torch
1 parent a63349a commit 5bd4d70

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,21 @@
2121
'scikit-image',
2222
'scipy',
2323
'setproctitle>=1.0',
24+
]
25+
26+
# Dependencies for optional features
27+
EXTRAS = {}
28+
29+
EXTRAS['tensorflow'] = [
2430
'tensorflow>=1.14',
2531
'tensorflow-probability>=0.11.0',
32+
]
33+
34+
EXTRAS['torch'] = [
2635
'torch>=1.0.0,!=1.5.0',
2736
'torchvision>=0.2.1',
2837
]
2938

30-
# Dependencies for optional features
31-
EXTRAS = {}
32-
3339
EXTRAS['gym'] = [
3440
f'gym[atari,box2d,classic_control]=={GYM_VERSION}',
3541
]

0 commit comments

Comments
 (0)