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
28537ae7
Commit
28537ae7
authored
8 years ago
by
Adam J. Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Workaround until variant forwarding works properly
parent
4d12c545
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
var/spack/repos/builtin/packages/hdf5/package.py
+1
-1
1 addition, 1 deletion
var/spack/repos/builtin/packages/hdf5/package.py
var/spack/repos/builtin/packages/netcdf/package.py
+5
-4
5 additions, 4 deletions
var/spack/repos/builtin/packages/netcdf/package.py
with
6 additions
and
5 deletions
var/spack/repos/builtin/packages/hdf5/package.py
+
1
−
1
View file @
28537ae7
...
...
@@ -52,7 +52,7 @@ class Hdf5(Package):
variant
(
'
cxx
'
,
default
=
True
,
description
=
'
Enable C++ support
'
)
variant
(
'
fortran
'
,
default
=
True
,
description
=
'
Enable Fortran support
'
)
variant
(
'
mpi
'
,
default
=
Fals
e
,
description
=
'
Enable MPI support
'
)
variant
(
'
mpi
'
,
default
=
Tru
e
,
description
=
'
Enable MPI support
'
)
variant
(
'
szip
'
,
default
=
False
,
description
=
'
Enable szip support
'
)
variant
(
'
threadsafe
'
,
default
=
False
,
description
=
'
Enable thread-safe capabilities
'
)
...
...
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/netcdf/package.py
+
5
−
4
View file @
28537ae7
...
...
@@ -52,15 +52,16 @@ class Netcdf(Package):
depends_on
(
"
zlib
"
)
depends_on
(
'
hdf5
'
)
# Variant forwarding
depends_on
(
'
hdf5+mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
'
hdf5~mpi
'
,
when
=
'
~mpi
'
)
# NetCDF 4.4.0 and prior have compatibility issues with HDF5 1.10 and later
# https://github.com/Unidata/netcdf-c/issues/250
depends_on
(
'
hdf5@:1.8
'
,
when
=
'
@:4.4.0
'
)
def
install
(
self
,
spec
,
prefix
):
# Workaround until variant forwarding works properly
if
'
+mpi
'
in
spec
and
spec
.
satisfies
(
'
^hdf5~mpi
'
):
raise
RuntimeError
(
'
Invalid spec. Package netcdf requires
'
'
hdf5+mpi, but spec asked for hdf5~mpi.
'
)
# Environment variables
CPPFLAGS
=
[]
LDFLAGS
=
[]
...
...
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