Skip to content
Snippets Groups Projects
Commit f5982b18 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Version check for singularity

parent 9f951598
No related branches found
No related tags found
1 merge request!1Merge python environment
Pipeline #9424 passed with warnings
......@@ -14,6 +14,8 @@ __status__ = "Development"
import os
from spython.main import Client
from spython.utils import get_singularity_version
from distutils.version import LooseVersion
from os.path import join, abspath, basename, isdir, isfile
from tempfile import NamedTemporaryFile, TemporaryDirectory
from thepipe.logger import get_logger
......@@ -23,6 +25,14 @@ from .config import Config
from .jobcard import Jobcard
log = get_logger(basename(__file__))
log.setLevel("INFO")
singularity_version = LooseVersion(get_singularity_version().split()[-1])
if singularity_version < LooseVersion("3.3"):
log.error("Singularity version lower than 3.3 (found: %s)" %
singularity_version.vstring)
raise OSError("Singularity version below 3.3 (found: %s)" %
singularity_version.vstring)
GIBUU_SHELL = """
#!/bin/bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment