Skip to content

Commit

Permalink
#169: adapt pip install script to new handling of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed May 24, 2024
1 parent f86b478 commit 846048e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion misc/pip_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ ENV_NAME=${2:-alphadia}

conda create -n $ENV_NAME python=3.9 -y

if [ "$INSTALL_TYPE" = "loose" ]; then
INSTALL_STRING=""
else
INSTALL_STRING="[${INSTALL_TYPE}]"
fi

# conda 'run' vs. 'activate', cf. https://stackoverflow.com/a/72395091
conda run -n $ENV_NAME --no-capture-output pip install -e "../.[${INSTALL_TYPE}]"
conda run -n $ENV_NAME --no-capture-output pip install -e "../.$INSTALL_STRING"
conda run -n $ENV_NAME --no-capture-output alphadia -v

0 comments on commit 846048e

Please sign in to comment.