-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added script to create geovista conda environment via Docker to use i…
…n the automated use case tests
- Loading branch information
1 parent
2c1a065
commit 9d53f02
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#! /bin/sh | ||
|
||
################################################################################ | ||
# Environment: geovista | ||
# Last Updated: 2022-11-08 (mccabe@ucar.edu) | ||
# Notes: Adds Python packages needed to run iris use case | ||
# Requires development version of geovista package that is obtained | ||
# from github.com/bjlittle/geovista | ||
# Python Packages: | ||
# geovista==0.1a1.dev462 | ||
# xarray==2022.11.0 | ||
# iris==3.3.1 | ||
# | ||
# Other Content: None | ||
################################################################################ | ||
|
||
# Conda environment to create | ||
ENV_NAME=geovista.v5 | ||
|
||
yum -y install git | ||
git clone https://github.com/bjlittle/geovista.git | ||
cd geovista | ||
conda create -y -n ${ENV_NAME} --file requirements/locks/py310-lock-linux-64.txt | ||
|
||
# note: this command will not work on a local machine | ||
# it is specific to docker | ||
/usr/local/envs/${ENV_NAME}/bin/pip3 install --no-deps --editable . | ||
cd - | ||
|
||
conda install -y --name ${ENV_NAME} -c conda-forge xarray==2022.11.0 | ||
conda install -y --name ${ENV_NAME} -c conda-forge iris==3.3.1 | ||
|