#!/usr/bin/env bash # This script is intended to be used as a sub-step of build-setup.sh. # note: lock file must end in .conda-lock.yml - see https://github.com/conda-incubator/conda-lock/issues/154 set -e CONDA_REQS=$CYDIR/conda-reqs CONDA_LOCK_REQS=$CONDA_REQS/conda-lock-reqs # must match with the file generated by generate-conda-lockfile.sh LOCKFILE=$CONDA_LOCK_REQS/conda-requirements-$TOOLCHAIN_TYPE-linux-64.conda-lock.yml if [ "$USE_UNPINNED_DEPS" = true ]; then # auto-gen the lockfiles $CYDIR/scripts/generate-conda-lockfiles.sh fi # use conda-lock to create env conda-lock install --conda $(which conda) -p $CYDIR/.conda-env $LOCKFILE source $CYDIR/.conda-env/etc/profile.d/conda.sh conda activate $CYDIR/.conda-env