Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spack_tuda
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Inghirami, Gabriele
spack_tuda
Commits
b369d8b2
Unverified
Commit
b369d8b2
authored
6 months ago
by
Chris Marsh
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
py-netcdf4: add v1.7.2 and fix variant (#47824)
parent
4d2319a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/py-netcdf4/package.py
+9
-5
9 additions, 5 deletions
var/spack/repos/builtin/packages/py-netcdf4/package.py
with
9 additions
and
5 deletions
var/spack/repos/builtin/packages/py-netcdf4/package.py
+
9
−
5
View file @
b369d8b2
...
@@ -15,6 +15,7 @@ class PyNetcdf4(PythonPackage):
...
@@ -15,6 +15,7 @@ class PyNetcdf4(PythonPackage):
license
(
"
MIT
"
)
license
(
"
MIT
"
)
version
(
"
1.7.2
"
,
sha256
=
"
a4c6375540b19989896136943abb6d44850ff6f1fa7d3f063253b1ad3f8b7fce
"
)
version
(
version
(
"
1.7.1.post2
"
,
sha256
=
"
37d557e36654889d7020192bfb56f9d5f93894cb32997eb837ae586c538fd7b6
"
"
1.7.1.post2
"
,
sha256
=
"
37d557e36654889d7020192bfb56f9d5f93894cb32997eb837ae586c538fd7b6
"
)
)
...
@@ -27,6 +28,7 @@ class PyNetcdf4(PythonPackage):
...
@@ -27,6 +28,7 @@ class PyNetcdf4(PythonPackage):
variant
(
"
mpi
"
,
default
=
True
,
description
=
"
Parallel IO support
"
)
variant
(
"
mpi
"
,
default
=
True
,
description
=
"
Parallel IO support
"
)
depends_on
(
"
python
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
python
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
python@3.8:
"
,
when
=
"
@1.7.1:
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-cython@0.29:
"
,
when
=
"
@1.6.5:
"
,
type
=
"
build
"
)
depends_on
(
"
py-cython@0.29:
"
,
when
=
"
@1.6.5:
"
,
type
=
"
build
"
)
depends_on
(
"
py-cython@0.19:
"
,
type
=
"
build
"
)
depends_on
(
"
py-cython@0.19:
"
,
type
=
"
build
"
)
depends_on
(
"
py-setuptools@61:
"
,
when
=
"
@1.6.5:
"
,
type
=
"
build
"
)
depends_on
(
"
py-setuptools@61:
"
,
when
=
"
@1.6.5:
"
,
type
=
"
build
"
)
...
@@ -35,15 +37,17 @@ class PyNetcdf4(PythonPackage):
...
@@ -35,15 +37,17 @@ class PyNetcdf4(PythonPackage):
depends_on
(
"
py-setuptools-scm@3.4:+toml
"
,
when
=
"
@1.7:
"
,
type
=
"
build
"
)
depends_on
(
"
py-setuptools-scm@3.4:+toml
"
,
when
=
"
@1.7:
"
,
type
=
"
build
"
)
depends_on
(
"
py-cftime
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-cftime
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-certifi
"
,
when
=
"
@1.6.5:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-certifi
"
,
when
=
"
@1.6.5:
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-numpy
"
,
when
=
"
@1.6.5:
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy@2.0:
"
,
when
=
"
@1.7.1:
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy@1.9:
"
,
when
=
"
@1.5.4:1.6.2
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy@1.9:
"
,
when
=
"
@1.5.4:1.6.2
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy@1.7:
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
# https://github.com/Unidata/netcdf4-python/pull/1317
# https://github.com/Unidata/netcdf4-python/pull/1317
depends_on
(
"
py-numpy@:1
"
,
when
=
"
@:1.6
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-numpy@:1
"
,
when
=
"
@:1.6
"
,
type
=
(
"
build
"
,
"
link
"
,
"
run
"
))
depends_on
(
"
py-mpi4py
"
,
when
=
"
+mpi
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
py-mpi4py
"
,
when
=
"
+mpi
"
,
type
=
(
"
build
"
,
"
run
"
))
depends_on
(
"
netcdf-c
"
,
when
=
"
-mpi
"
)
# These forced variant requests are due to py-netcdf4 build scripts
# https://github.com/spack/spack/pull/47824#discussion_r1882473998
depends_on
(
"
netcdf-c~mpi
"
,
when
=
"
~mpi
"
)
depends_on
(
"
netcdf-c+mpi
"
,
when
=
"
+mpi
"
)
depends_on
(
"
netcdf-c+mpi
"
,
when
=
"
+mpi
"
)
depends_on
(
"
hdf5@1.8.0:+hl
"
,
when
=
"
-
mpi
"
)
depends_on
(
"
hdf5@1.8.0:+hl
~mpi
"
,
when
=
"
~
mpi
"
)
depends_on
(
"
hdf5@1.8.0:+hl+mpi
"
,
when
=
"
+mpi
"
)
depends_on
(
"
hdf5@1.8.0:+hl+mpi
"
,
when
=
"
+mpi
"
)
# The installation script tries to find hdf5 using pkg-config. However, the
# The installation script tries to find hdf5 using pkg-config. However, the
...
@@ -57,7 +61,7 @@ class PyNetcdf4(PythonPackage):
...
@@ -57,7 +61,7 @@ class PyNetcdf4(PythonPackage):
patch
(
patch
(
"
https://github.com/Unidata/netcdf4-python/commit/49dcd0b5bd25824c254770c0d41445133fc13a46.patch?full_index=1
"
,
"
https://github.com/Unidata/netcdf4-python/commit/49dcd0b5bd25824c254770c0d41445133fc13a46.patch?full_index=1
"
,
sha256
=
"
71eefe1d3065ad050fb72eb61d916ae1374a3fafd96ddaee6499cda952d992c4
"
,
sha256
=
"
71eefe1d3065ad050fb72eb61d916ae1374a3fafd96ddaee6499cda952d992c4
"
,
when
=
"
@1.6: %gcc@14:
"
,
when
=
"
@1.6:
1.6.5
%gcc@14:
"
,
)
)
def
url_for_version
(
self
,
version
):
def
url_for_version
(
self
,
version
):
...
...
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