Skip to content

Commit

Permalink
updates install steps to build env from multiple env files at the sam…
Browse files Browse the repository at this point in the history
…e time
  • Loading branch information
lacava committed Jan 19, 2024
1 parent 98a728c commit 8a1d103
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
19 changes: 10 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ for SUBNAME in ${subnames[@]} ; do
pwd
echo "Installing dependencies for ${SUBNAME}"
echo "........................................"
echo "Copying base environment"
echo "Making environment"
echo "........................................"
conda create --name $SUBENV --clone srbench
if test -f "environment.yml" ; then
echo "Update alg env from environment.yml"
echo "........................................"
mamba env update -n $SUBENV -f ${SUBFOLDER}/environment.yml
fi
# conda create --name $SUBENV --clone srbench
mamba env create --name $SUBENV -f base_environment.yml -f ${SUBFOLDER}/environment.yml
# if test -f "environment.yml" ; then
# echo "Update alg env from environment.yml"
# echo "........................................"
# mamba env update -n $SUBENV -f ${SUBFOLDER}/environment.yml
# fi

if test -f "requirements.txt" ; then
echo "Update alg env from requirements.txt"
Expand All @@ -48,16 +49,16 @@ for SUBNAME in ${subnames[@]} ; do
eval "$(conda shell.bash hook)"
conda init bash
conda activate $SUBENV
cd $SUBFOLDER
if test -f "install.sh" ; then
echo "running install.sh..."
echo "........................................"
cd $SUBFOLDER
bash install.sh
cd ../../
else
echo "::warning::No install.sh file found in ${SUBFOLDER}."
echo " Assuming the method is a conda package specified in environment.yml."
fi
cd ../../

# Copy files and environment
# echo "Copying files and environment to experiment/methods ..."
Expand Down
10 changes: 0 additions & 10 deletions setup.py

This file was deleted.

0 comments on commit 8a1d103

Please sign in to comment.