-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move NEPTUNE Python dependencies into its their own package neptune-p…
…ython-env, remove legacy environment variables for NEPTUNE (#1343) This PR moves the full NEPTUNE Python dependencies into their own package neptune-python-dev. Only the basic dependencies on f90nml and python-dateutil remain in neptune-env (needed by NUOPC). The espc variant is turned off by default in neptune-env, but the neptune-dev template enables it. Likewise, the xnrl variant is turned off by default in neptune-python-env, but the neptune-dev template enables it. Several legacy environment variables for hdf5, libyaml, p4est are removed from configs/common/modules_*.yaml.
- Loading branch information
Showing
7 changed files
with
54 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ spack: | |
definitions: | ||
- compilers: ['%aocc', '%apple-clang', '%gcc', '%intel', '%oneapi'] | ||
- packages: | ||
- neptune-env +espc +python +xnrl ^[email protected] snapshot=b11 | ||
- neptune-env +espc ^[email protected] snapshot=b11 | ||
- neptune-python-env +xnrl ^[email protected] snapshot=b11 | ||
|
||
specs: | ||
- matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
spack-ext/repos/spack-stack/packages/neptune-python-env/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
import sys | ||
|
||
from spack.package import * | ||
|
||
|
||
class NeptunePythonEnv(BundlePackage): | ||
"""Development environment for NEPTUNE standalone with all Python dependencies""" | ||
|
||
# Fake URL | ||
homepage = "https://github.com/notavalidaccount/neptune" | ||
git = "https://github.com/notavalidaccount/neptune.git" | ||
|
||
maintainers("climbfuji", "areinecke") | ||
|
||
version("1.5.0") | ||
|
||
variant("xnrl", default=False, description="Build non-pulic XNRL") | ||
|
||
depends_on("neptune-env", type="run") | ||
|
||
depends_on("py-h5py", type="run") | ||
depends_on("py-netcdf4", type="run") | ||
depends_on("py-pandas", type="run") | ||
depends_on("py-pycodestyle", type="run") | ||
depends_on("py-pybind11", type="run") | ||
depends_on("py-pyhdf", type="run") | ||
depends_on("py-pyyaml", type="run") | ||
depends_on("py-scipy", type="run") | ||
depends_on("py-xarray", type="run") | ||
depends_on("py-pytest", type="run") | ||
depends_on("py-fortranformat", type="run") | ||
|
||
with when("+xnrl"): | ||
depends_on("py-xnrl", type="run") | ||
|
||
# There is no need for install() since there is no code. |