Commit edd36396 authored by Germann Elsa Sylvia's avatar Germann Elsa Sylvia
Browse files

ADD: cacheing

parent 2407c74e
......@@ -2,6 +2,8 @@ import re
import subprocess
import sys
from functools import cache
assert sys.version_info >= (3, 7), 'Python version is too low, please load a python >= 3.7'
def subprocess_cmd(cmd):
......@@ -44,6 +46,7 @@ class PmodulePackage():
self.true_status = [self.given_status]
@staticmethod
@cache
def Pmoduliser(pckg_name='', compiler='', mpi_provider=''):
default_module_cmd = 'module search ' + pckg_name + ' -a --all-deps --no-header'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment