ADD: caching
This commit is contained in:
parent
e32142d02f
commit
c0c75c0167
@ -9,6 +9,6 @@ check:
|
||||
stage: check
|
||||
script:
|
||||
- source /opt/psi/config/profile.bash
|
||||
- module load Python/3.8.12
|
||||
- module load Python
|
||||
- export COLUMNS=$COLUMNS
|
||||
- python3 dependency-checker.py
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user