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
41f36511
Commit
41f36511
authored
9 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
modules : added provenance comment in tcl header
parent
3959ca62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/spack/modules.py
+8
-1
8 additions, 1 deletion
lib/spack/spack/modules.py
with
8 additions
and
1 deletion
lib/spack/spack/modules.py
+
8
−
1
View file @
41f36511
...
...
@@ -45,6 +45,7 @@
import
os.path
import
re
import
textwrap
import
datetime
import
llnl.util.tty
as
tty
import
spack
...
...
@@ -401,7 +402,7 @@ class TclModule(EnvModule):
autoload_format
=
(
'
if ![ is-loaded {module_file} ] {{
\n
'
'
puts stderr
"
Autoloading {module_file}
"
\n
'
'
module load {module_file}
\n
'
'
}}
\n
'
)
'
}}
\n
\n
'
)
prerequisite_format
=
'
prereq {module_file}
\n
'
...
...
@@ -420,6 +421,12 @@ def use_name(self):
def
header
(
self
):
# TCL Modulefile header
header
=
'
#%Module1.0
\n
'
header
+=
'
## Module file created by spack (https://github.com/LLNL/spack)
'
header
+=
'
on %s
\n
'
%
datetime
.
datetime
.
now
()
header
+=
'
##
\n
'
header
+=
'
## %s
\n
'
%
self
.
spec
.
short_spec
header
+=
'
##
\n
'
# TODO : category ?
# Short description
if
self
.
short_description
:
...
...
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