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
0e2b1359
Commit
0e2b1359
authored
9 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
modules : fixed bug preventing the creation of modulefiles autoloading only direct dependencies
parent
a5a5dbc4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/config.py
+7
-9
7 additions, 9 deletions
lib/spack/spack/config.py
lib/spack/spack/modules.py
+3
-3
3 additions, 3 deletions
lib/spack/spack/modules.py
with
10 additions
and
12 deletions
lib/spack/spack/config.py
+
7
−
9
View file @
0e2b1359
...
@@ -117,22 +117,20 @@
...
@@ -117,22 +117,20 @@
the site configuration will be ignored.
the site configuration will be ignored.
"""
"""
import
copy
import
os
import
os
import
re
import
re
import
sys
import
sys
import
copy
import
jsonschema
from
jsonschema
import
Draft4Validator
,
validators
import
yaml
from
yaml.error
import
MarkedYAMLError
from
ordereddict_backport
import
OrderedDict
import
jsonschema
import
llnl.util.tty
as
tty
import
llnl.util.tty
as
tty
from
llnl.util.filesystem
import
mkdirp
import
copy
import
spack
import
spack
import
yaml
from
jsonschema
import
Draft4Validator
,
validators
from
llnl.util.filesystem
import
mkdirp
from
ordereddict_backport
import
OrderedDict
from
spack.error
import
SpackError
from
spack.error
import
SpackError
from
yaml.error
import
MarkedYAMLError
# Hacked yaml for configuration files preserves line numbers.
# Hacked yaml for configuration files preserves line numbers.
import
spack.util.spack_yaml
as
syaml
import
spack.util.spack_yaml
as
syaml
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/modules.py
+
3
−
3
View file @
0e2b1359
...
@@ -114,14 +114,14 @@ def inspect_path(prefix):
...
@@ -114,14 +114,14 @@ def inspect_path(prefix):
return
env
return
env
def
dependencies
(
spec
,
request
=
'
A
ll
'
):
def
dependencies
(
spec
,
request
=
'
a
ll
'
):
if
request
==
'
N
one
'
:
if
request
==
'
n
one
'
:
return
[]
return
[]
l
=
[
xx
for
xx
in
l
=
[
xx
for
xx
in
sorted
(
spec
.
traverse
(
order
=
'
post
'
,
depth
=
True
,
cover
=
'
nodes
'
,
root
=
False
),
reverse
=
True
)]
sorted
(
spec
.
traverse
(
order
=
'
post
'
,
depth
=
True
,
cover
=
'
nodes
'
,
root
=
False
),
reverse
=
True
)]
if
request
==
'
D
irect
'
:
if
request
==
'
d
irect
'
:
return
[
xx
for
ii
,
xx
in
l
if
ii
==
1
]
return
[
xx
for
ii
,
xx
in
l
if
ii
==
1
]
# FIXME : during module file creation nodes seem to be visited multiple times even if cover='nodes'
# FIXME : during module file creation nodes seem to be visited multiple times even if cover='nodes'
...
...
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