Skip to content
Snippets Groups Projects
Commit ae078957 authored by Nick Bearson's avatar Nick Bearson
Browse files

migrate the pip dependencies from package.sh to our conda environment file....

migrate the pip dependencies from package.sh to our conda environment file. this will include them in our buildbucket & keeps our package script leaner.
parent d89223f0
No related branches found
No related tags found
1 merge request!4add satpy to our buildbucket
......@@ -16,8 +16,15 @@ dependencies:
- setuptools
- xarray
- zarr
# satpy dependencies:
- configobj
- pykdtree
- pyresample
- trollsift
- trollimage
\ No newline at end of file
- trollimage
- shapely
- pip:
- git+https://github.com/deeplycloudy/lmatools.git@minvaluegrids
- git+https://github.com/deeplycloudy/stormdrain.git
- git+https://github.com/deeplycloudy/glmtools.git@master
- git+https://github.com/pytroll/satpy.git@feature-scmi-multivar
\ No newline at end of file
......@@ -25,13 +25,8 @@ fi
pkg_name=cspp-geo-gridded-glm-${version}
DIST=${DIST:-"/dock"}
LMATOOLS_REF=${LMATOOLS_REF:-"minvaluegrids"}
GLMTOOLS_REF=${GLMTOOLS_REF:-"master"}
GLMTOOLS_REPOS=${GLMTOOLS_REPOS:-"https://github.com/deeplycloudy/glmtools.git"}
GGLM_REPOS=${GGLM_REPOS:-"https://gitlab.ssec.wisc.edu/cspp_geo/cspp-geo-gridded-glm.git"}
GGLM_REF=${GGLM_REF:-"master"}
SATPY_REPOS=${SATPY_REPOS:-"https://github.com/pytroll/satpy.git"}
SATPY_REF=${SATPY_REF:-"feature-scmi-multivar"}
MINIFY_TARBALL=${MINIFY_TARBALL:-1}
make_dockerfile() {
......@@ -55,23 +50,11 @@ which python
conda info -a
conda list --export
echo "Version specified: ${version}"
echo "lmatools reference: ${LMATOOLS_REF}"
echo "glmtools reference: ${GLMTOOLS_REF}"
# Turn on command printing here because we don't need all of the `conda`
# internal bash commands to pollute our output
set -x
# Install glmtools and related packages
# All dependencies should have been built with the buildbucket
# Careful: Could result in missing dependencies but we want reproducibility
pip install --no-deps git+https://github.com/deeplycloudy/lmatools.git@${LMATOOLS_REF}
pip install --no-deps git+https://github.com/deeplycloudy/stormdrain.git
pip install --no-deps git+${GLMTOOLS_REPOS}@${GLMTOOLS_REF}
# Install satpy
pip install --no-deps git+${SATPY_REPOS}@${SATPY_REF}
# get the current packages files
# if the caller mounted the repository already then use that
GGLM_DIR="/work/cspp-geo-gridded-glm/gridded_glm"
......@@ -81,7 +64,7 @@ fi
# Build a tarball version of the current conda environment
# TODO: Add conda cleanup commands similar to what Polar2Grid uses to save space
conda_tb=conda_lmatools-${LMATOOLS_REF}_glmtools-${GLMTOOLS_REF}.tar.gz
conda_tb=conda_gglm.tar.gz
conda clean -ay # remove unnecessary things from conda environment
conda pack --n-threads $(nproc) -n build -o ${conda_tb}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment