From 1f903f37990166c4e1c2814e5bfd7f76162e980a Mon Sep 17 00:00:00 2001 From: Ake Sandgren Date: Thu, 20 Oct 2022 07:47:41 +0200 Subject: [PATCH 1/2] For version >= 3.20.07 use "noAsk" option to config. --- easybuild/easyblocks/x/xmipp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/easybuild/easyblocks/x/xmipp.py b/easybuild/easyblocks/x/xmipp.py index c84a43a50f1..20343ee1ce6 100644 --- a/easybuild/easyblocks/x/xmipp.py +++ b/easybuild/easyblocks/x/xmipp.py @@ -101,10 +101,15 @@ def configure_step(self): # Tell xmipp config that there is no Scipion. env.setvar('XMIPP_NOSCIPION', 'True') # Initialize the config file and then patch it with the correct values + if LooserVersion(self.version) >= LooserVersion('3.20.07'): + noask = 'noAsk' + else: + noask = '' cmd = ' '.join([ self.cfg['preconfigopts'], self.xmipp_exe, 'config', + noask, self.cfg['configopts'], ]) run_cmd(cmd, log_all=True, simple=True) From 37deb6b0f150dfdd2f43a9415caa313665171bbe Mon Sep 17 00:00:00 2001 From: Ake Sandgren Date: Thu, 20 Oct 2022 07:49:13 +0200 Subject: [PATCH 2/2] Fix typo --- easybuild/easyblocks/x/xmipp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyblocks/x/xmipp.py b/easybuild/easyblocks/x/xmipp.py index 20343ee1ce6..122c49543b6 100644 --- a/easybuild/easyblocks/x/xmipp.py +++ b/easybuild/easyblocks/x/xmipp.py @@ -101,7 +101,7 @@ def configure_step(self): # Tell xmipp config that there is no Scipion. env.setvar('XMIPP_NOSCIPION', 'True') # Initialize the config file and then patch it with the correct values - if LooserVersion(self.version) >= LooserVersion('3.20.07'): + if LooseVersion(self.version) >= LooseVersion('3.20.07'): noask = 'noAsk' else: noask = ''