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
c84123dc
Commit
c84123dc
authored
8 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
spack info : shows the build-system class used
parent
482f60d1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/cmd/info.py
+5
-2
5 additions, 2 deletions
lib/spack/spack/cmd/info.py
lib/spack/spack/package.py
+12
-0
12 additions, 0 deletions
lib/spack/spack/package.py
with
17 additions
and
2 deletions
lib/spack/spack/cmd/info.py
+
5
−
2
View file @
c84123dc
...
...
@@ -48,8 +48,11 @@ def setup_parser(subparser):
def
print_text_info
(
pkg
):
"""
Print out a plain text description of a package.
"""
print
"
Package:
"
,
pkg
.
name
print
"
Homepage:
"
,
pkg
.
homepage
header
=
"
{0}:
"
.
format
(
pkg
.
build_system_class
)
print
header
,
pkg
.
name
whitespaces
=
''
.
join
([
'
'
]
*
(
len
(
header
)
-
len
(
"
Homepage:
"
)))
print
"
Homepage:
"
,
whitespaces
,
pkg
.
homepage
print
print
"
Safe versions:
"
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/package.py
+
12
−
0
View file @
c84123dc
...
...
@@ -1674,6 +1674,9 @@ def rpath_args(self):
class
Package
(
PackageBase
):
phases
=
[
'
install
'
]
# To be used in UI queries that require to know which
# build-system class we are using
build_system_class
=
'
Package
'
# This will be used as a registration decorator in user
# packages, if need be
PackageBase
.
sanity_check
(
'
install
'
)(
PackageBase
.
sanity_check_prefix
)
...
...
@@ -1681,6 +1684,9 @@ class Package(PackageBase):
class
EditableMakefile
(
PackageBase
):
phases
=
[
'
edit
'
,
'
build
'
,
'
install
'
]
# To be used in UI queries that require to know which
# build-system class we are using
build_system_class
=
'
EditableMakefile
'
def
wdir
(
self
):
return
self
.
stage
.
source_path
...
...
@@ -1709,6 +1715,9 @@ def install(self, spec, prefix):
class
AutotoolsPackage
(
PackageBase
):
phases
=
[
'
autoreconf
'
,
'
configure
'
,
'
build
'
,
'
install
'
]
# To be used in UI queries that require to know which
# build-system class we are using
build_system_class
=
'
AutotoolsPackage
'
def
autoreconf
(
self
,
spec
,
prefix
):
"""
Not needed usually, configure should be already there
"""
...
...
@@ -1750,6 +1759,9 @@ def _run_default_function(self):
class
CMakePackage
(
PackageBase
):
phases
=
[
'
cmake
'
,
'
build
'
,
'
install
'
]
# To be used in UI queries that require to know which
# build-system class we are using
build_system_class
=
'
CMakePackage
'
def
build_type
(
self
):
return
'
RelWithDebInfo
'
...
...
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