-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
72 lines (53 loc) · 1.74 KB
/
setup.sh
File metadata and controls
72 lines (53 loc) · 1.74 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
64
65
66
67
68
69
70
71
72
sudo apt-get --yes update
sudo apt-get --yes upgrade
sudo apt-get --yes dist-upgrade
sudo apt-get --yes install \
build-essential \
curl \
default-jdk \
gfortran \
git \
libblas-dev \
libbz2-dev \
libfreetype6-dev \
libhdf5-serial-dev \
liblapack-dev \
libncurses5-dev \
libpng-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
llvm \
make \
pkg-config \
python-wxgtk2.8 \
wget \
zlib1g-dev
sudo apt-get --yes autoremove
if ! cd $HOME/.pyenv; then
git clone git://github.com/yyuu/pyenv.git $HOME/.pyenv
fi
if ! cd $HOME/.pyenv/plugins/pyenv-virtualenv; then
git clone https://github.com/yyuu/pyenv-virtualenv.git \
$HOME/.pyenv/plugins/pyenv-virtualenv
fi
grep -q -F 'export PATH="$HOME/.pyenv/bin:$PATH"' $HOME/.bashrc ||
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> $HOME/.bashrc
grep -q -F 'eval "$(pyenv init -)"' $HOME/.bashrc ||
echo 'eval "$(pyenv init -)"' >> $HOME/.bashrc
grep -q -F 'eval "$(pyenv virtualenv-init -)"' $HOME/.bashrc ||
echo 'eval "$(pyenv virtualenv-init -)"' >> $HOME/.bashrc
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
if ! cd $HOME/.pyenv/versions/2.7.10; then
pyenv install 2.7.10
fi
pyenv global 2.7.10
if ! cd $HOME/.pyenv/versions/CellProfiler-2.7.10; then
pyenv virtualenv 2.7.10 CellProfiler-2.7.10
fi
pyenv activate CellProfiler-2.7.10
pip install --upgrade pip
pip install numpy
pip install h5py libtiff matplotlib python-bioformats scipy zmq