Skip to content

Commit 20dea7e

Browse files
author
Caspar van Leeuwen
committed
Resolved conflict
2 parents a778ca5 + 6b1e921 commit 20dea7e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

eessi_software_reproduce_stack.py

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import argparse
24
import bz2
35
import glob
@@ -14,12 +16,12 @@
1416
1517
The script
1618
- Determines all software that was installed in the reference prefix
17-
- Sorts it in order of installation. For software that was later rebuild, the original installation time is used.
19+
- Sorts it in order of installation. For software that was later rebuilt, the original installation time is used.
1820
- In the installation order, easyconfig names are added to easystack files
19-
- A new easystack file is started when either the easybuild version to be used changes, or when the maximum build
21+
- A new easystack file is started when either the EasyBuild version to be used changes, or when the maximum build
2022
time is exceeded (build times of the software in the reference software subdir are used to estimate this)
2123
22-
By sticking to the original order in which software was installed, using the robot should not be needed. Since nothing
24+
By sticking to the original order in which software was installed, using the robot option should not be needed. Since nothing
2325
is installed by the robot, one is able to guarantee that the same easyconfigs and easyblocks are used that were
2426
used during original installation time.
2527
@@ -29,10 +31,9 @@
2931
Example:
3032
3133
python3 eessi_software_reproduce_stack.py --reference-software-subdir=x86_64/amd/zen2 --eessi-version 2025.06
32-
3334
will create easystacks that allow you to replicate the software installed in
3435
/cvmfs/software.eessi.io/versions/2025.06/<eessi-version>/software/linux/<reference-software-subdir>,
35-
provided the logs of these installations where backed up to
36+
provided the logs of these installations were backed up to
3637
/cvmfs/software.eessi.io/versions/2025.06/<eessi-version>/software/linux/<reference-software-subdir>/reprod
3738
(which was standard practice starting with EESSI version 2025.06).
3839
@@ -204,8 +205,7 @@ def inner_loop(software_name):
204205

205206
# Each worker in the pool creates its own software info dict. The result of the map function is a list of these dicts
206207
# Here, we merge all these dicts into one. Note that we know the keys to be unique, so no risk of clashes
207-
208-
software_info = {k: v for d in software_info_list if d for k, v in d.items()} # laatste dict bepaalt de waarde
208+
software_info = {k: v for d in software_info_list if d for k, v in d.items()}
209209
print(f"Gathered information for {len(software_info)} software installations (including versions) in {root_dir}")
210210
if args.debug:
211211
import pprint

0 commit comments

Comments
 (0)