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
21641e19
Commit
21641e19
authored
1 year ago
by
Ashwin Kumar Karnad
Committed by
Hans Fangohr
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
use `mpsd_release` instead of `release`. Good idea to have this consistent throughout the script.
parent
9c971521
No related branches found
No related tags found
1 merge request
!36
Available command
Pipeline
#370515
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
+5
-5
5 additions, 5 deletions
mpsd-software-environment.py
with
5 additions
and
5 deletions
mpsd-software-environment.py
+
5
−
5
View file @
21641e19
...
...
@@ -315,7 +315,7 @@ def set_up_logging(loglevel="warning", file_path=None):
)
def
get_available_toolchains
(
release
:
str
)
->
List
[
str
]:
def
get_available_toolchains
(
mpsd_
release
:
str
)
->
List
[
str
]:
"""
Given a release, return the available toolchains.
This is based on the spack-environment
'
s repository [1]. For this function
...
...
@@ -343,8 +343,8 @@ def get_available_toolchains(release: str) -> List[str]:
'
global_generic
'
]
"""
logging
.
debug
(
f
"
get_available_toolchains(
{
release
=
}
)
"
)
logging
.
info
(
f
"
Retrieving available toolchains for release
{
release
}
"
)
logging
.
debug
(
f
"
get_available_toolchains(
{
mpsd_
release
=
}
)
"
)
logging
.
info
(
f
"
Retrieving available toolchains for release
{
mpsd_
release
}
"
)
print_log
=
logging
.
getLogger
(
"
print
"
)
# create temporary directory
...
...
@@ -352,7 +352,7 @@ def get_available_toolchains(release: str) -> List[str]:
tmp_dir_path
=
Path
(
tmp_dir
.
name
)
# find toolchains by cloning repository and checking out right branch
clone_repo
(
tmp_dir_path
,
config_vars
[
"
spack_environments_repo
"
],
branch
=
release
)
clone_repo
(
tmp_dir_path
,
config_vars
[
"
spack_environments_repo
"
],
branch
=
mpsd_
release
)
# look for directories defining the toolchains
toolchains
=
os
.
listdir
(
tmp_dir_path
/
"
toolchains
"
)
...
...
@@ -360,7 +360,7 @@ def get_available_toolchains(release: str) -> List[str]:
logging
.
debug
(
msg
)
# summarise toolchains found for use
print_log
.
info
(
f
"
MPSD software release
{
release
}
provides
"
)
print_log
.
info
(
f
"
MPSD software release
{
mpsd_
release
}
provides
"
)
for
toolchain
in
sorted
(
toolchains
):
print_log
.
info
(
"
"
+
toolchain
)
...
...
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