Skip to content

Commit 93696cd

Browse files
committed
GEERTS-reproduction: Add Guix 'channels.scm' and 'manifests.scm' files.
These two files are all it takes to set up a known-good test environment with: guix time-machine -C channels.scm -- shell -m manifest.scm
1 parent 0f69a09 commit 93696cd

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

GEERTS-reproduction/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,23 @@ These additional modifications were:
3232

3333
## Installation
3434

35-
Install the project by cloning it on your computer or by downloading a compressed version.</br>
36-
Install the required packages using the environment.yml file and the 'conda env create -f environment.yml', followed by the 'conda activate geerts_reproduction' command.
35+
Using [GNU Guix](https://guix.gnu.org), set up the complete software
36+
environment with:
37+
38+
```
39+
$ guix time-machine -C channels.scm \
40+
-- shell -m manifest.scm --container \
41+
--expose=../images=$HOME/path/to/local/clone/images
42+
```
43+
44+
The `channels.scm` file instructs how to [replicate the exact Guix revision
45+
used for
46+
testing](https://guix.gnu.org/manual/en/html_node/Replicating-Guix.html),
47+
while `manifest.scm` defines [the software
48+
environment](https://guix.gnu.org/manual/en/html_node/Writing-Manifests.html)
49+
of this computational experiment.
50+
51+
Alternatively, if you are not using Guix, install the required packages using the environment.yml file and the 'conda env create -f environment.yml', followed by the 'conda activate geerts_reproduction' command.
3752
You can also install the required packages using the requirements.txt file and the 'pip install -r requirements.txt' command
3853

3954
## Usage

GEERTS-reproduction/channels.scm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(list (channel
2+
(name 'guix)
3+
(url "https://git.savannah.gnu.org/git/guix.git")
4+
(branch "master")
5+
(commit
6+
"14c03807ba4bc81d42cf869f5b827f7da54ff843")
7+
(introduction
8+
(make-channel-introduction
9+
"9edb3f66fd807b096b48283debdcddccfea34bad"
10+
(openpgp-fingerprint
11+
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))

GEERTS-reproduction/manifest.scm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(specifications->manifest
2+
(list
3+
"python"
4+
"python-cython"
5+
"python-matplotlib"
6+
"python-networkx"
7+
"python-numpy"
8+
"python-pandas"
9+
"python-scipy"
10+
"python-seaborn"
11+
"python-statsmodels"
12+
"python-tqdm"
13+
14+
"gcc" ;should be gcc-toolchain but trick to have the default version
15+
))

0 commit comments

Comments
 (0)