Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
eic_tools
Spack
Commits
b6833f08
Commit
b6833f08
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #129 from mathstuf/separate-prefix
spack: split spack_root from prefix
parents
c8f01480
3ce85b22
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
lib/spack/spack/__init__.py
+8
-6
8 additions, 6 deletions
lib/spack/spack/__init__.py
with
8 additions
and
6 deletions
lib/spack/spack/__init__.py
+
8
−
6
View file @
b6833f08
...
@@ -27,24 +27,26 @@
...
@@ -27,24 +27,26 @@
from
llnl.util.filesystem
import
*
from
llnl.util.filesystem
import
*
# This lives in $prefix/lib/spack/spack/__file__
# This lives in $prefix/lib/spack/spack/__file__
prefix
=
ancestor
(
__file__
,
4
)
spack_root
=
ancestor
(
__file__
,
4
)
# The spack script itself
# The spack script itself
spack_file
=
join_path
(
prefix
,
"
bin
"
,
"
spack
"
)
spack_file
=
join_path
(
spack_root
,
"
bin
"
,
"
spack
"
)
# spack directory hierarchy
# spack directory hierarchy
etc_path
=
join_path
(
prefix
,
"
etc
"
)
lib_path
=
join_path
(
spack_root
,
"
lib
"
,
"
spack
"
)
lib_path
=
join_path
(
prefix
,
"
lib
"
,
"
spack
"
)
build_env_path
=
join_path
(
lib_path
,
"
env
"
)
build_env_path
=
join_path
(
lib_path
,
"
env
"
)
module_path
=
join_path
(
lib_path
,
"
spack
"
)
module_path
=
join_path
(
lib_path
,
"
spack
"
)
compilers_path
=
join_path
(
module_path
,
"
compilers
"
)
compilers_path
=
join_path
(
module_path
,
"
compilers
"
)
test_path
=
join_path
(
module_path
,
"
test
"
)
test_path
=
join_path
(
module_path
,
"
test
"
)
hooks_path
=
join_path
(
module_path
,
"
hooks
"
)
hooks_path
=
join_path
(
module_path
,
"
hooks
"
)
var_path
=
join_path
(
prefix
,
"
var
"
,
"
spack
"
)
var_path
=
join_path
(
spack_root
,
"
var
"
,
"
spack
"
)
stage_path
=
join_path
(
var_path
,
"
stage
"
)
stage_path
=
join_path
(
var_path
,
"
stage
"
)
share_path
=
join_path
(
spack_root
,
"
share
"
,
"
spack
"
)
prefix
=
spack_root
opt_path
=
join_path
(
prefix
,
"
opt
"
)
opt_path
=
join_path
(
prefix
,
"
opt
"
)
install_path
=
join_path
(
opt_path
,
"
spack
"
)
install_path
=
join_path
(
opt_path
,
"
spack
"
)
share
_path
=
join_path
(
prefix
,
"
share
"
,
"
spack
"
)
etc
_path
=
join_path
(
prefix
,
"
etc
"
)
#
#
# Set up the packages database.
# Set up the packages database.
...
...
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