mass-scraper/prepare-environment.sh

12 lines
340 B
Bash
Raw Normal View History

2017-11-21 22:51:09 +01:00
#!/usr/bin/env bash
. /home/siulkilulki/pkgs/miniconda3/etc/profile.d/conda.sh
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
conda activate polish-masses
2017-11-21 22:51:09 +01:00
export PYTHONIOENCODING=utf8
env | sed 's/=/:=/' | sed 's/^/export /'