-
Notifications
You must be signed in to change notification settings - Fork 4
/
manifest.scm
executable file
·45 lines (41 loc) · 1.54 KB
/
manifest.scm
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
;; Use this to set up a development environment.
;; guix time-machine -C channels.scm -- shell -m manifest.scm
;;
;; Optionally, add "--pure" or "--container" for more isolation.
(import (guix packages)
(guix profiles))
(define replace-cpu-torch-with-gpu-torch
(if (getenv "FLEXYNESIS_USE_CPU")
identity ;don't do anything
(let ((cpu-torch (specification->package "python-pytorch"))
(gpu-torch (specification->package "python-pytorch-with-cuda11")))
(package-input-rewriting `((,cpu-torch . ,gpu-torch))))))
(define %packages
(map replace-cpu-torch-with-gpu-torch
(map specification->package
(list "python-captum"
"python-ipywidgets"
"python-louvain"
"python-lifelines"
"python-matplotlib"
"python-numpy"
"python-pandas"
"python-papermill"
"python-pytorch"
"python-pytorch-lightning"
"python-pytorch-geometric"
"python-pyyaml"
"python-rich"
"python-scikit-optimize"
"python-scikit-survival"
"python-scipy"
"python-seaborn"
"python-torchvision"
"python-tqdm"
"python-umap-learn"))))
(define %dev-packages
(map specification->package
(list "python-pytest")))
(packages->manifest
(cons (specification->package "python")
(append %packages %dev-packages)))