-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_environments.sh
31 lines (31 loc) · 1.23 KB
/
setup_environments.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
for dir in "energy_detection" "dummy"
do
dir=${dir%*/}
if [ -f $dir/requirements.txt ]; then
if [ -d $dir/${dir}_env ]; then
rm -rf $dir/${dir}_env
fi
echo Creating $dir/${dir}_env
python3 -m venv $dir/${dir}_env
echo Installing requirements for ${dir}
$dir/${dir}_env/bin/pip3 install wheel
$dir/${dir}_env/bin/pip3 install setuptools
$dir/${dir}_env/bin/pip3 install scikit-build
$dir/${dir}_env/bin/pip3 install Cython
$dir/${dir}_env/bin/pip3 install numpy
$dir/${dir}_env/bin/pip3 install -r $dir/requirements.txt
if [ -f $dir/requirements_git.txt ]; then
# $dir/${dir}_env/bin/pip3 install numpy
# $dir/${dir}_env/bin/pip3 install pandas
# $dir/${dir}_env/bin/pip3 install cython
# $dir/${dir}_env/bin/pip3 install astropy
# $dir/${dir}_env/bin/pip3 install matplotlib
# $dir/${dir}_env/bin/pip3 install scipy
# $dir/${dir}_env/bin/pip3 install pytest
# $dir/${dir}_env/bin/pip3 install dask xarray
# $dir/${dir}_env/bin/pip3 install turbo-seti
$dir/${dir}_env/bin/pip3 install -r $dir/requirements_git.txt
fi
fi
done