2017-11-21 22:51:09 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-03-11 18:02:31 +01:00
|
|
|
. /home/siulkilulki/pkgs/miniconda3/etc/profile.d/conda.sh
|
2018-01-20 21:55:26 +01:00
|
|
|
if conda info --envs | grep -q "polish-masses"; then
|
2017-11-21 22:51:09 +01:00
|
|
|
(>&2 echo "Environment exist. Ready to process.")
|
|
|
|
else
|
|
|
|
(>&2 conda env create -f environment.yml)
|
|
|
|
fi
|
|
|
|
|
2018-03-11 18:02:31 +01:00
|
|
|
conda activate polish-masses
|
2017-11-21 22:51:09 +01:00
|
|
|
export PYTHONIOENCODING=utf8
|
|
|
|
env | sed 's/=/:=/' | sed 's/^/export /'
|