ADD: caching
This commit is contained in:
@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user