You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Comrad/bin/comrad-activate

26 lines
737 B
Bash

#!/bin/bash
# funcs (mac doesnt have realpath)
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
echo "Python (t1): `which python`"
path_lib="`realpath ~/comrad/lib`"
path_conda="`realpath ~/comrad/lib/miniconda3`"
path_venv="`realpath ~/comrad/code/venv`"
path_repo="`realpath ~/comrad/code`"
path_themis="$path_lib/themis/build"
source $path_conda/etc/profile.d/conda.sh
export PATH="$path_conda/Library/bin:$path_conda:$PATH"
# export PATH="$path_conda/Library/bin:$path_conda/Scripts:$path_conda:$PATH"
export PATH="$path_conda/bin:$PATH"
conda activate $path_venv
export LD_LIBRARY_PATH="$path_themis:$LD_LIBRARY_PATH"
python -m pip install -r $path_repo/requirements.txt
echo "Python (t2): `which python`"