A Buildout recipe to install conda packages
Project description
Introduction
birdhousebuilder.recipe.conda is a Buildout recipe to install Anaconda packages. This recipe is used by the Birdhouse project.
Usage
The recipe requires that Anaconda is already installed. You can use the buildout option anaconda-home to set the prefix for the anaconda installation. You can also use the recipe option prefix to set the conda prefix. Otherwise the environment variable CONDA_PREFIX (variable is set when activating a conda environment) is used as conda prefix.
Supported options
This recipe supports the following options:
- anaconda-home
Buildout option pointing to the root folder of the Anaconda installation. Default: $HOME/anaconda.
- conda-channels
Buildout option (optional) with channels of conda packages. Default: defaults
- conda-offline
Buildout option (optional) to set conda offline mode. It has no effect when buildout is already in offline mode. Default: false
- channel-priority
Buildout option (optional) to set channel priority in conda install. Default: true
- prefix
Path to the conda prefix (optional). If not given then CONDA_PREFIX or anaconda-home will be used.
- pkgs
A list of packages to install, separated by space.
- channels
A list of space separated conda channels (optional). These channels are merged with conda-channels option. Default: defaults.
- override-channels
If True then default channels from ~/.condarc are ignored (optional). Default. true.
- no-pin
If True then conda pinned file is ignored (optional). Default: false.
- env
Name of conda environment used for installation (optional). If environment is missing then packages are installed in the active environment.
- default-pkgs
A list of packages to install when creating a conda environment separated by space (optional). Default: python
- pip-pkgs
A list of packages which are installed by pip into the conda enviroment (optional).
Example usage
The following example buildout.cfg installs the packages in the active conda environment.
[buildout]
parts = conda
[conda]
recipe = birdhousebuilder.recipe.conda
pkgs = lxml owslib
channels = defaults birdhouse
Changes
0.3.6 (2017-05-08)
don’t run conda install in offline mode.
0.3.5 (2016-10-12)
added buildout option channel-priority.
fixed order of channels.
0.3.4 (2016-10-10)
added buildout option conda-offline (#8).
0.3.3 (2016-08-05)
fixed: added missing CalledProcessError import
0.3.2 (2016-07-11)
catch conda exception (#7).
0.3.1 (2016-06-30)
using CONDA_PREFIX.
0.3.0 (2016-06-28)
added option no-pin and override-channels.
sets conda env-path and prefix in options.
enabled travis build.
removed unused as_bool and makedirs functions.
using bool_option from zc.buildout.
using conda offline mode.
install pip packages.
added prefix option.
using CONDA_ENV_PATH.
0.2.7 (2016-04-15)
removed default ioos conda channel.
0.2.6 (2015-12-15)
added default ioos conda channel.
0.2.5 (2015-09-21)
use buildout offline option … don’t establish internet connection when enabled.
0.2.4 (2015-08-05)
use CONDA_ENVS_DIR to overwrite base dir of conda environments.
0.2.2 (2015-02-25)
sets buildout:prefix option as installation default directory for birdhouse.
0.2.1 (2015-02-24)
setting anaconda-home with environment variable $ANACONDA_HOME.
separation of install prefix and anaconda-home.
0.2.0 (2015-02-23)
conda environments can be created now.
added channels option.
0.1.4 (2015-01-09)
added https://conda.binstar.org/birdhouse to default channels.
0.1.3 (2015-01-08)
added https://conda.binstar.org/scitools to default channels.
0.1.2 (2014-12-02)
added on on-update buildout option.
0.1.1 (2014-07-31)
Updated documentation.
0.1.0 (2014-07-10)
Initial Release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for birdhousebuilder.recipe.conda-0.3.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1928af1e8dd58c0097357082f136b09d79ef839b4eecf0c7c2289c875c64635 |
|
MD5 | 04edb84d878e5314ed14e069436e3e64 |
|
BLAKE2b-256 | 56bffa9c6eaa5ae6aa9ca8b14f2c147213f8a2b4acd8eaa0187059bbeae5e687 |
Hashes for birdhousebuilder.recipe.conda-0.3.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d05ffde037d67cde09f83a1f8304f7db0adde209cce77177e4f7ab9d053ca2ca |
|
MD5 | e4d8bbac791c58f1f61696c220c226f4 |
|
BLAKE2b-256 | cf40781c403c6dffb9215ec0ac132c5a54a5a16ea3e8b3525dd442b08e8b9a22 |