Awesome
<img alt="Cate: ESA CCI Toolbox" align="right" src="https://raw.githubusercontent.com/CCI-Tools/cate/master/doc/source/_static/logo/cci-toolbox-logo-latex.jpg" />cate-conda
This repository provides scripts used to build and deploy various Cate packages for the Anaconda and Miniconda Python distributions.
See also the cate-installer repo which is used to build a stand-alone installer for Cate.
Available Cate Conda packages
cate
- the default, complete Cate distribution for Pythoncate-cli
- same ascate
but creates start menu / desktop shortcuts for the Cate command-line interface (CLI) during installation usingconda install
cate-util
- just thecate.util
Python package with optional dependencies
Building Cate Conda packages
Install conda-build
in your root Miniconda:
$ source activate
$ conda install conda-build
Clone this repo:
$ git clone https://github.com/CCI-Tools/cate-conda.git
Build a Conda package cate-<recipe>
(see recipes/<recipe>/meta.yaml
):
$ cd cate-conda
$ conda build -c conda-forge -c defaults recipes/<recipe>
The -c
(or --channel
) option adds extra Anaconda channels to search for package
dependencies. We must add defaults
to search for Anaconda default packagers first, then
for packages from conda-forge
, which hosts the cartopy
versions required by Cate.
Testing the Conda package
To test the new Conda package cate
in a test environment cate-test
, type
$ conda create -n cate-test python=3
$ source activate cate-test
$ conda install -c conda-forge --use-local cate
...
$ cate --help
Deploying the Conda package
Just run the package build step with --user <channel>
:
$ conda build --user ccitools -c conda-forge -c defaults recipes/<recipe>