mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-13 07:10:49 +00:00
21 lines
608 B
Bash
Executable File
21 lines
608 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# funcs (mac doesnt have realpath)
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
echo "Python (t1): `which python`"
|
|
|
|
|
|
path_conda="`realpath ~/comrad/lib/miniconda3`"
|
|
path_venv="`realpath ~/comrad/code/venv`"
|
|
path_repo="`realpath ~/comrad/code`"
|
|
|
|
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
|
|
python -m pip install -r $path_repo/requirements.txt
|
|
|
|
echo "Python (t2): `which python`" |