Skip to content

Packaging Python code with conda

Ryan Fobel edited this page Aug 14, 2017 · 18 revisions

Most of the custom conda packages required for MicroDrop are hosted on the wheeler-mirofluidics and sci-bots channels. Starting with MicroDrop 2.8, plugins are also conda packages and they are hosted on their own microdrop-plugins channel.

Below are a few common commands that are useful for developing conda packages for MicroDrop.

Install package from local cache

You could use this, e.g., when you want to install a package that you have built using conda build .conda-recipe.

conda install --use-local PACKAGE_NAME

show channels

conda config --show-sources

add channels

conda config --add channels wheeler-microfluidics

install build dependencies:

build a package:

conda build .conda-recipe```

**Note:** built packages are cached in the `%CONDA_PREFIX%\conda-bld\win-32` directory.

## build the MicroDrop installer (uses ```miniconda-recipe```)
```paver build_installer

upload a package:

Note:

Need to delete git cache to prevent it being marked as a dev build (conda checks out a new branch if cache exists). Cache is located at: %CONDA_PREFIX%\conda-bld\git_cache\C_\Users\ryan\Documents\dev\python.

install local package in development mode

This works by creating a conda.pth file in site-packages.

Clone this wiki locally