Skip to content

Local conda builds (WIP)

Tom Urbach edited this page Jun 15, 2021 · 1 revision

This assumes you have installed miniconda3 per-user and have a pristine base conda environment with only conda-build, mamba, and boa in addition to the miniconda default dependencies.

To test local fitgrid builds ...

  1. activate your (base) fitgrid environment.

  2. From the top of the fitgrid source tree, do this.

conda mambabuild -c conda-forge -c defaults -c ejolly conda

This will build a conda package tarball named "fitgrid-XXXX.tar.bz2" in your local miniconda <path_to>/conda-bld/linux_64 directory where the XXXXs are the version number and conda build string. The <path_to> depends on your conda installation and where conda-build lives, it may be something like "~/miniconda3".

  1. (Optional) Convert the package to other platforms for testing like so:
mkdir conda_build
cd conda_build
mkdir linux-64
cp  -r <path_to>.conda/envs/fitgrid_compat/conda-bld/linux-64 .
conda convert --platform all linux-64/fitgrid.tar.bz2

DEPRECATED ... these were for manual upload to Anaconda, now automated in the Actions CI but good to know.

# anaconda login
# anaconda upload -i -u kutaslab ./**/*.tar.bz2
# anaconda logout
# #Having modified proxy settings (e.g. in Firefox) might interfere with the upload, revert them temporarily.