Skip to content

Commit 567e23c

Browse files
author
Caspar van Leeuwen
committed
Fix the fact that --disable-robot was only introduced in EB 5.2.0
1 parent 081a51c commit 567e23c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

eessi_software_reproduce_stack.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import re
77
from datetime import datetime
88
from multiprocessing import Pool
9+
from packaging.version import Version
910

1011
description = """
1112
This script creates a sequence of easystack files that may be used to replicate the software installed
@@ -118,7 +119,9 @@ def write_software_info(local_software_info, easystack_file, build_duration):
118119
# Disable robot, to guarantee each build is done with the easyconfig & easyblock specified in the easystack file
119120
# Note that for robot builds, this may not happen, because if X is build as dep for Y, and Y did not have
120121
# the relevant include-easyblocks specified for X, it would just use the ones from the central EB installation
121-
easystack_file_handle.write(' robot: False\n')
122+
# Only support from EB 5.2.0 onwards
123+
if Version(info["easybuild_version"]) >= Version("5.2.0"):
124+
easystack_file_handle.write(' robot: False\n')
122125
easystack_file_handle.write(f' include-easyblocks: {info["easyblock_path"]}\n')
123126

124127

0 commit comments

Comments
 (0)