-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_dependencies.sh
More file actions
63 lines (51 loc) · 1.61 KB
/
install_dependencies.sh
File metadata and controls
63 lines (51 loc) · 1.61 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# exit when any command fails
set -e
# keep track of the last executed command
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
# echo an error message before exiting
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
CONDA_BASE=$(conda info --base)
source $CONDA_BASE/etc/profile.d/conda.sh
# TODO: uncomment, create req.yaml?
# Only install the dependencies (we will install inferno from the latest github repo):
conda create -n LSIMasks --only-deps -c pytorch -c abailoni -c conda-forge gasp cython firelight inferno ipython
conda activate LSIMasks
conda install -c abailoni -c conda-forge gasp cython firelight ipython
# Install extra repositories:
if [ ! -d "./downloads" ]; then mkdir ./downloads; fi
WORKING_DIR=./downloads/deps
if [ -d "$WORKING_DIR" ]; then rm -Rf $WORKING_DIR; fi
mkdir $WORKING_DIR
cd $WORKING_DIR
git clone https://github.com/abailoni/inferno.git
cd ./inferno
git checkout my_dev
python setup.py develop
cd ..
git clone https://github.com/abailoni/speedrun.git
cd ./speedrun
git checkout inference-engine
python setup.py develop
cd ..
git clone https://github.com/abailoni/neurofire.git
cd ./neurofire
python setup.py develop
cd ..
git clone https://github.com/imagirom/ConfNets.git
cd ConfNets
git checkout multi-scale-unet
python setup.py develop
cd ..
git clone https://github.com/constantinpape/cremi_python.git
cd cremi_python
git checkout py3
python setup.py install
cd ..
git clone https://github.com/abailoni/segmfriends.git
cd ./segmfriends
git checkout postproc_affs
python setup.py develop
cd ..
# Install package:
cd ../..
python setup.py develop