Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
edd36396
Commit
edd36396
authored
Oct 25, 2022
by
Germann Elsa Sylvia
Browse files
ADD: cacheing
parent
2407c74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
bin/dependency-checker.py
bin/dependency-checker.py
+3
-0
No files found.
bin/dependency-checker.py
View file @
edd36396
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment