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
e67655c3
Commit
e67655c3
authored
10 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
docs autodetect version.
parent
c7b8a4e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/spack/docs/conf.py
+10
-4
10 additions, 4 deletions
lib/spack/docs/conf.py
lib/spack/spack/__init__.py
+1
-1
1 addition, 1 deletion
lib/spack/spack/__init__.py
lib/spack/spack/cmd/package-list.py
+5
-4
5 additions, 4 deletions
lib/spack/spack/cmd/package-list.py
with
16 additions
and
9 deletions
lib/spack/docs/conf.py
+
10
−
4
View file @
e67655c3
...
...
@@ -35,7 +35,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
,
os
import
sys
import
os
import
subprocess
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
...
...
@@ -43,9 +45,13 @@
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
exts
'
))
# Add the Spack bin directory to the path so that we can use its output in docs.
os
.
environ
[
'
SPACK_ROOT
'
]
=
'
../../..
'
spack_root
=
'
../../..
'
os
.
environ
[
'
SPACK_ROOT
'
]
=
spack_root
os
.
environ
[
'
PATH
'
]
+=
os
.
pathsep
+
'
$SPACK_ROOT/bin
'
spack_version
=
subprocess
.
Popen
(
[
'
spack
'
,
'
-V
'
],
stderr
=
subprocess
.
PIPE
).
communicate
()[
1
].
strip
().
split
(
'
.
'
)
# Set an environment variable so that colify will print output like it would to
# a terminal.
os
.
environ
[
'
COLIFY_TTY
'
]
=
'
true
'
...
...
@@ -97,9 +103,9 @@
# built documents.
#
# The short X.Y version.
version
=
'
1.0
'
version
=
'
.
'
.
join
(
spack_version
[:
2
])
# The full version, including alpha/beta/rc tags.
release
=
'
1.0
'
release
=
'
.
'
.
join
(
spack_version
[:
2
])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/__init__.py
+
1
−
1
View file @
e67655c3
...
...
@@ -78,7 +78,7 @@
# Version information
from
spack.version
import
Version
spack_version
=
Version
(
"
0.8
"
)
spack_version
=
Version
(
"
0.8
.15
"
)
#
# Executables used by Spack
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/cmd/package-list.py
+
5
−
4
View file @
e67655c3
...
...
@@ -23,6 +23,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
import
re
import
cgi
from
StringIO
import
StringIO
import
llnl.util.tty
as
tty
from
llnl.util.tty.colify
import
*
...
...
@@ -70,9 +71,9 @@ def print_rst_package_list():
print
print
pkg
.
name
print
"
-
"
*
len
(
pkg
.
name
)
print
"
Links
"
print
"
* `
Homepage
<%s>`__
"
%
pkg
.
homepage
print
"
* `%s/package.py <%s>`__
"
%
(
pkg
.
name
,
github_url
(
pkg
))
print
"
Links
:
"
print
"
* `
%s
<%s>`__
"
%
(
cgi
.
escape
(
pkg
.
homepage
),
pkg
.
homepage
)
print
"
* `%s/package.py <%s>`__
"
%
(
pkg
.
name
,
github_url
(
pkg
))
print
if
pkg
.
versions
:
print
"
Versions:
"
...
...
@@ -82,7 +83,7 @@ def print_rst_package_list():
print
"
"
+
"
,
"
.
join
(
"
`%s`_
"
%
d
if
d
!=
"
mpi
"
else
d
for
d
in
pkg
.
dependencies
)
print
print
"
Description
"
print
"
Description
:
"
print
pkg
.
format_doc
(
indent
=
2
)
print
print
"
-----
"
...
...
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