Repository navigation
Reorganize JEDI meta-module enviornments to separate advanced python dependencies. #2134
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
Merged
+72
−23
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1005ea7
Split JEDI python dependencies into a new jedi-python-env
eap 8d022ab
move bufr query
eap 5db8091
jedi_python_env s/climbfuji/eap/
eap 36ac271
add +fix_rt_linkage to container and aws-ubuntu2404
eap f8f819d
Restore py-versioneer@0.28 as a py-pandas require, not a prefer
eap 76e4dc5
Merge branch 'develop' into feature/python-jedi-reorg
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
46 changes: 46 additions & 0 deletions
46
repos/spack_stack/spack_repo/spack_stack/packages/jedi_python_env/package.py
This file contains hidden or 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,46 @@ | ||
| # Copyright 2013-2022 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) | ||
|
|
||
| from spack_repo.builtin.build_systems.bundle import BundlePackage | ||
| from spack.package import * | ||
|
|
||
|
|
||
| class JediPythonEnv(BundlePackage): | ||
| """Python dependencies for JEDI applications, on top of jedi-base-env""" | ||
|
|
||
| homepage = "https://github.com/jcsda/spack-stack" | ||
| git = "https://github.com/jcsda/spack-stack.git" | ||
|
|
||
| maintainers("eap", "srherbener") | ||
|
|
||
| version("1.0.0") | ||
|
|
||
| # Mirrors the jedi-base-env variant so py-pyhdf tracks the hdf4 library | ||
| variant("hdf4", default=True, description="Build hdf4 library and python hdf module") | ||
| variant("bufrquery", default=True, description="Build bufr-query library") | ||
|
|
||
| depends_on("jedi-base-env", type="run") | ||
| depends_on("jedi-base-env +hdf4", when="+hdf4", type="run") | ||
| depends_on("jedi-base-env ~hdf4", when="~hdf4", type="run") | ||
|
|
||
| # bufr is built +python in configs/common/packages.yaml, so it carries a | ||
| # py-numpy run dependency; bufr-query is its python-bindings companion. | ||
| depends_on("bufr", type="run") | ||
| depends_on("bufr-query", when="+bufrquery", type="run") | ||
|
|
||
| # Python packages | ||
| depends_on("py-eccodes", type="run") | ||
| depends_on("py-f90nml", 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-pyhdf", when="+hdf4", type="run") | ||
| depends_on("py-python-dateutil", type="run") | ||
| depends_on("py-pyyaml", type="run") | ||
| depends_on("py-scipy", type="run") | ||
| depends_on("py-xarray", type="run") | ||
|
|
||
| # There is no need for install() since there is no code. |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got added in the last change and ended up setting
py-versioneer@0.28as preferred, I had to move it down to make sure py-versioneer@0.28 stayed in therequire:block.