Separate out conda-lock generation into new script

This commit is contained in:
abejgonzalez
2023-05-09 13:58:40 -07:00
parent 8b805aca1b
commit dbbf7c90b4
5 changed files with 577 additions and 516 deletions

View File

@@ -114,11 +114,12 @@ if run_step "1"; then
# note: lock file must end in .conda-lock.yml - see https://github.com/conda-incubator/conda-lock/issues/154
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 lockfile
conda-lock -f $CONDA_REQS/chipyard.yaml -f $CONDA_REQS/$TOOLCHAIN_TYPE.yaml --lockfile $LOCKFILE
$CYDIR/scripts/generate-conda-lockfile.sh $TOOLCHAIN_TYPE
fi
# use conda-lock to create env