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
08d323b1
Commit
08d323b1
authored
8 years ago
by
Adam J. Stewart
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
NCO: Add latest version, update to AutotoolsPackage (#2629)
parent
b18738e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/nco/package.py
+11
-9
11 additions, 9 deletions
var/spack/repos/builtin/packages/nco/package.py
with
11 additions
and
9 deletions
var/spack/repos/builtin/packages/nco/package.py
+
11
−
9
View file @
08d323b1
...
...
@@ -25,13 +25,14 @@
from
spack
import
*
class
Nco
(
Package
):
class
Nco
(
Autotools
Package
):
"""
The NCO toolkit manipulates and analyzes data stored in
netCDF-accessible formats
"""
homepage
=
"
https://sourceforge.net/projects/nco
"
url
=
"
https://github.com/nco/nco/archive/4.
5.5
.tar.gz
"
url
=
"
https://github.com/nco/nco/archive/4.
6.2
.tar.gz
"
version
(
'
4.6.2
'
,
'
b7471acf0cc100343392f4171fb56113
'
)
version
(
'
4.6.1
'
,
'
ef43cc989229c2790a9094bd84728fd8
'
)
version
(
'
4.5.5
'
,
'
9f1f1cb149ad6407c5a03c20122223ce
'
)
...
...
@@ -45,17 +46,18 @@ class Nco(Package):
depends_on
(
'
udunits2
'
)
# allows dimensional unit transformations
# depends_on('opendap') # enables network transparency
def
install
(
self
,
spec
,
prefix
):
@AutotoolsPackage.precondition
(
'
configure
'
)
def
validate
(
self
):
"""
Ensures that dependents were built with the right variants.
"""
# Workaround until variant forwarding works properly
spec
=
self
.
spec
if
'
+mpi
'
in
spec
and
spec
.
satisfies
(
'
^netcdf~mpi
'
):
raise
RuntimeError
(
'
Invalid spec. Package netcdf requires
'
'
netcdf+mpi, but spec asked for netcdf~mpi.
'
)
opts
=
[
'
--prefix=%s
'
%
prefix
,
def
configure_args
(
self
):
return
[
'
--disable-openmp
'
,
# TODO: Make this a variant
'
--disable-dap
'
,
# TODO: Make this a variant
'
--disable-esmf
'
]
configure
(
*
opts
)
make
()
make
(
"
install
"
)
'
--disable-esmf
'
]
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