Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klaus Noelp
ebrains-spack-builds
Commits
c3c69cb1
Commit
c3c69cb1
authored
2 years ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
copy packages.yaml each time
parent
2526f399
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_spack_env.sh
+10
-12
10 additions, 12 deletions
install_spack_env.sh
with
10 additions
and
12 deletions
install_spack_env.sh
+
10
−
12
View file @
c3c69cb1
...
...
@@ -21,19 +21,17 @@ if [ ! -d $INSTALLATION_ROOT/spack ]
then
# clone spack repo, import packages.yaml config file and activate
git clone
--depth
1
-c
advice.detachedHead
=
false
-c
feature.manyFiles
=
true
--branch
$SPACK_VERSION
https://github.com/spack/spack
$INSTALLATION_ROOT
/spack
cp
$EBRAINS_REPO
/packages.yaml
$INSTALLATION_ROOT
/spack/etc/spack/packages.yaml
source
$INSTALLATION_ROOT
/spack/share/spack/setup-env.sh
# install platform compiler and python (extract versions from packages.yaml)
EBRAINS_SPACK_COMPILER
=
$(
grep
'compiler'
$EBRAINS_REPO
/packages.yaml |
awk
-F
'[][]'
'{ print $2 }'
)
EBRAINS_SPACK_PYTHON
=
python@
$(
grep
-A1
'python'
$EBRAINS_REPO
/packages.yaml |
tail
-n1
|
awk
-F
'[][]'
'{ print $2 }'
)
spack compiler find
spack
install
$EBRAINS_SPACK_COMPILER
spack load
$EBRAINS_SPACK_COMPILER
spack compiler find
spack
install
$EBRAINS_SPACK_PYTHON
%
$EBRAINS_SPACK_COMPILER
else
source
$INSTALLATION_ROOT
/spack/share/spack/setup-env.sh
fi
cp
$EBRAINS_REPO
/packages.yaml
$INSTALLATION_ROOT
/spack/etc/spack/packages.yaml
source
$INSTALLATION_ROOT
/spack/share/spack/setup-env.sh
# install platform compiler and python (extract versions from packages.yaml)
EBRAINS_SPACK_COMPILER
=
$(
grep
'compiler'
$EBRAINS_REPO
/packages.yaml |
awk
-F
'[][]'
'{ print $2 }'
)
EBRAINS_SPACK_PYTHON
=
python@
$(
grep
-A1
'python'
$EBRAINS_REPO
/packages.yaml |
tail
-n1
|
awk
-F
'[][]'
'{ print $2 }'
)
spack compiler find
spack
install
$EBRAINS_SPACK_COMPILER
spack load
$EBRAINS_SPACK_COMPILER
spack compiler find
spack
install
$EBRAINS_SPACK_PYTHON
%
$EBRAINS_SPACK_COMPILER
# add repo if it does not exist
if
[[
!
$(
spack repo list |
grep
$EBRAINS_REPO
)
]]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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