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
c3f3f266
Commit
c3f3f266
authored
8 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
modules : added warning if a user tries to add prerequisite with dotkit
parent
0b7c6732
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/modules.py
+7
-2
7 additions, 2 deletions
lib/spack/spack/modules.py
with
7 additions
and
2 deletions
lib/spack/spack/modules.py
+
7
−
2
View file @
c3f3f266
...
@@ -382,11 +382,11 @@ def module_specific_content(self, configuration):
...
@@ -382,11 +382,11 @@ def module_specific_content(self, configuration):
return
tuple
()
return
tuple
()
def
autoload
(
self
,
spec
):
def
autoload
(
self
,
spec
):
m
=
TclModule
(
spec
)
m
=
type
(
self
)
(
spec
)
return
self
.
autoload_format
.
format
(
module_file
=
m
.
use_name
)
return
self
.
autoload_format
.
format
(
module_file
=
m
.
use_name
)
def
prerequisite
(
self
,
spec
):
def
prerequisite
(
self
,
spec
):
m
=
TclModule
(
spec
)
m
=
type
(
self
)
(
spec
)
return
self
.
prerequisite_format
.
format
(
module_file
=
m
.
use_name
)
return
self
.
prerequisite_format
.
format
(
module_file
=
m
.
use_name
)
def
process_environment_command
(
self
,
env
):
def
process_environment_command
(
self
,
env
):
...
@@ -449,6 +449,11 @@ def header(self):
...
@@ -449,6 +449,11 @@ def header(self):
header
+=
'
#h %s
\n
'
%
line
header
+=
'
#h %s
\n
'
%
line
return
header
return
header
def
prerequisite
(
self
,
spec
):
tty
.
warn
(
'
prerequisites: not supported by dotkit module files
'
)
tty
.
warn
(
'
\t
You may want to check ~/.spack/modules.yaml
'
)
return
''
class
TclModule
(
EnvModule
):
class
TclModule
(
EnvModule
):
name
=
'
tcl
'
name
=
'
tcl
'
...
...
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