birdhousebuilder.recipe.conda¶
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. It assumes that the default Anaconda location is in your home directory ~/anaconda
. Otherwise you need to set the ANACONDA_HOME
environment variable.
Supported options¶
This recipe supports the following options:
anaconda-home
Buildout option with the root folder of the Anaconda installation. Default:
$HOME/anaconda
. The default location can also be set with the environment variableANACONDA_HOME
. Example:export ANACONDA_HOME=/opt/anaconda
Search priority is:
anaconda-home
inbuildout.cfg
$ANACONDA_HOME
$HOME/anaconda
conda-channels
- Buildout option (optional) with additional channels of conda packages.
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.
env
- Name of conda environment used for installation (optional). If environment is missing then all packages are installed in the birdhouse environment (
birdhouse
). default-pkgs
- A list of packages to install when creating environment separated by space (optional). Default:
python
on-update
- If set to false conda will not check for updates when running buildout update. Default:
false
.
Note
If buildout is run in offline mode no network connection will be establish and conda packages will not be installed.
Example usage¶
The following example buildout.cfg
installs the conda packages lxml, nose and matplotlib:
[buildout]
parts = conda_pkgs
conda-channels = birdhouse
[conda_pkgs]
recipe = birdhousebuilder.recipe.conda
pkgs = lxml nose matplotlib owslib
channels = birdhouse asmeurer
env = mytest
default-pkgs = python
on-update = false