-
Notifications
You must be signed in to change notification settings - Fork 13
Packaging Python code with conda
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/building conda packages for MicroDrop.
conda config --add channels conda-forge &
conda config --add channels wheeler-microfluidics &
conda config --add channels sci-bots
conda config --show-sources
conda develop PATH_TO_PACKAGE
This works by creating a conda.pth file in site-packages.
conda install constructor conda-build git constructor-git nsis=3.0
conda clean --source &
conda build .conda-recipe
Note 1: Built packages are cached in the %CONDA_PREFIX%\conda-bld\win-32 directory.
Note 2: Running git clean --source is necessary to delete the git cache and prevent the package from being marked as a dev build (conda checks out a new branch if the cache exists). The cache is located at %CONDA_PREFIX%\conda-bld\git_cache\C_\Users\ryan\Documents\dev\python.
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
anaconda upload -u wheeler-microfluidics XXX.tar.bz2
paver build_installer