Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Project 'ri/tech-hub/platform/esd/yashchiki' was moved to 'ri/tech-hub/platform/esd/dedal'. Please update any links and bookmarks that may still have the old path.
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Merge requests
!3
Draft: Esd spack installation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Esd spack installation
esd-spack-installation
into
master
Overview
0
Commits
11
Pipelines
98
Changes
29
Closed
Adrian Ciu
requested to merge
esd-spack-installation
into
master
1 month ago
Overview
0
Commits
11
Pipelines
98
Changes
2
Expand
SpackOperation class handles spack installation and spack operations on an environment
Factory dp for diffrent spack usages (with or without cache)
Edited
1 month ago
by
Adrian Ciu
0
0
Merge request reports
Viewing commit
5de54e8b
Show latest version
2 files
+
11
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
5de54e8b
esd-spack-installation: added spack install packages method
· 5de54e8b
Adrian Ciu
authored
1 month ago
esd/spack_manager/SpackManager.py
+
10
−
0
Options
@@ -167,6 +167,16 @@ class SpackManager(ABC):
return
spack_version
.
stdout
.
strip
().
split
()[
0
]
return
None
@no_spack_env
def
install_packages
(
self
,
jobs
:
int
):
# spack install -v --j "$cpu_count" --fresh
run_command
(
"
bash
"
,
"
-c
"
,
f
'
source
{
self
.
spack_setup_script
}
&& spack install --env
{
self
.
env
.
env_name
}
-v --j
{
jobs
}
--fresh
'
,
capture_output
=
True
,
text
=
True
,
check
=
True
,
logger
=
self
.
logger
,
debug_msg
=
f
"
Installing spack packages for
{
self
.
env
.
env_name
}
"
,
exception_msg
=
f
"
Error installing spack packages for
{
self
.
env
.
env_name
}
"
,
exception
=
SpackInstallPackagesException
)
def
install_spack
(
self
,
spack_version
=
"
v0.21.1
"
,
spack_repo
=
'
https://github.com/spack/spack
'
):
try
: