Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
26ebbf3f
Commit
26ebbf3f
authored
1 year ago
by
Hans Fangohr
Browse files
Options
Downloads
Patches
Plain Diff
work in progress
parent
01c2afcc
No related branches found
Branches containing commit
No related tags found
1 merge request
!36
Available command
Pipeline
#370442
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpsd-software-environment.py
+14
-0
14 additions, 0 deletions
mpsd-software-environment.py
with
14 additions
and
0 deletions
mpsd-software-environment.py
+
14
−
0
View file @
26ebbf3f
...
...
@@ -8,6 +8,7 @@ import logging
import
os
import
subprocess
import
sys
import
tempfile
import
time
from
pathlib
import
Path
from
typing
import
List
,
Tuple
,
Union
...
...
@@ -331,6 +332,13 @@ def get_available_toolchains(release: str) -> List[str]:
- clone spack_environments to temporary location
- use `get_release_info(mpsd_release, script_dir)` on that directory.
"""
logging
.
debug
(
f
"
get_available_toolchains(
{
release
=
}
)
"
)
with
tempfile
.
TemporaryDirectory
()
as
tmp_dir
:
clone_repo
(
Path
(
tmp_dir
),
config_vars
[
"
spack_environments_repo
"
])
result
=
get_release_info
(
'
dev-23a
'
,
tmp_dir
)
logging
.
debug
(
f
"
{
result
=
}
"
)
print
(
result
)
...
...
@@ -966,6 +974,12 @@ def main():
)
elif
args
.
action
==
"
prepare
"
:
prepare_environment
(
args
.
release
,
script_dir
)
elif
args
.
action
==
"
available
"
:
get_available_toolchains
(
args
.
release
)
else
:
message
=
f
"
No known action found (
{
args
.
action
=
}
). Should probably never happen.
"
logging
.
error
(
message
)
raise
NotImplementedError
(
message
)
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment