Skip to content
Permalink
Browse files
fix: allow apptainer as a successor to singularity. (#1706)
Closes #1570.
  • Loading branch information
bilke committed Jun 15, 2022
1 parent 1d4909e commit bcbdb0bc44746961838f9603e42d0e171407c740
Showing 1 changed file with 10 additions and 5 deletions.
@@ -173,9 +173,14 @@ def check(self):
raise WorkflowError(
"Failed to get singularity version:\n{}".format(e.stderr.decode())
)
v = v.rsplit(" ", 1)[-1]
if v.startswith("v"):
v = v[1:]
if not LooseVersion(v) >= LooseVersion("2.4.1"):
raise WorkflowError("Minimum singularity version is 2.4.1.")
if v.startswith("apptainer"):
v = v.rsplit(" ", 1)[-1]
if not LooseVersion(v) >= LooseVersion("1.0.0"):
raise WorkflowError("Minimum apptainer version is 1.0.0.")
else:
v = v.rsplit(" ", 1)[-1]
if v.startswith("v"):
v = v[1:]
if not LooseVersion(v) >= LooseVersion("2.4.1"):
raise WorkflowError("Minimum singularity version is 2.4.1.")
self._version = v

0 comments on commit bcbdb0b

Please sign in to comment.