Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patch for py-netcdf4 so that we can build it ~mpi #502

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Jan 21, 2025

Add patch for py-netcdf4 so that we can build it ~mpi when netcdf-c was built with +mpi. See JCSDA/spack-stack#1463 for more information.

See JCSDA/spack-stack#1464 for testing.

@climbfuji climbfuji self-assigned this Jan 21, 2025
@climbfuji climbfuji changed the title DRAFT Bugfix/pynetcdf4 nompi Add patch for py-netcdf4 so that we can build it ~mpi Jan 21, 2025
@climbfuji climbfuji marked this pull request as ready for review January 21, 2025 16:58
@@ -42,9 +42,9 @@ class PyNetcdf4(PythonPackage):
# https://github.com/Unidata/netcdf4-python/pull/1317
depends_on("py-numpy@:1", when="@:1.6", type=("build", "link", "run"))
depends_on("py-mpi4py", when="+mpi", type=("build", "run"))
depends_on("netcdf-c", when="-mpi")
depends_on("netcdf-c", when="~mpi")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would take out the when="~mpi" but functionally I don't think it matters.

Copy link
Collaborator

@AlexanderRichert-NOAA AlexanderRichert-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to have this change

@climbfuji climbfuji merged commit 0ee54ff into JCSDA:spack-stack-dev Jan 21, 2025
15 checks passed
@climbfuji climbfuji deleted the bugfix/pynetcdf4_nompi branch January 21, 2025 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants