-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·84 lines (68 loc) · 2.15 KB
/
install.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
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
73
74
75
76
77
78
79
80
81
82
83
84
#! /bin/bash -f
black="\u1b[39m"
red="\u1b[31m"
green="\u1b[32m"
printf $green"installing standard libraries\n"$black
sudo apt-get install python3-dev build-essential python3.8-virtualenv
if [ ! -d .env ];then
printf $green"creating a virtual environment called .env\n"$black
python3 -m venv .env
fi
printf $green"installing electron-diffraction locally in .env\n"$black
.env/bin/pip install -e .
# sudo apt-get install python3
# sudo apt-get install python3-dev
# printf $green"installing pip\n"$black
# wget https://bootstrap.pypa.io/get-pip.py
# python3 get-pip.py --user
# pip3 install IPython
###### local python installation
# wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
# tar zxfv Python-3.8.5.tgz
# find ~/Python-3.8.5 -type d | xargs chmod 0755
# cd ~/Python-3.8.5
# ./configure --prefix=$HOME/Python-3.8.5
# make
# # printf 'alias python3="~/Python-3.8.5/python"' >> ~/.bash_aliases
# # srcAlias
# printf $green"Installing and testing fftw\n"$black
# wget http://www.fftw.org/fftw-3.3.9.tar.gz
# tar -xvzf fftw-3.3.9.tar.gz
# if [ -d ~//Documents/fftw ]; then mkdir -p ~/Documents/fftw;fi
# mv fftw-3.3.9 Documents/fftw
# cd ~/Documents/fftw/fftw-3.3.9
# ./configure --enable-threads --enable-float
# make
# sudo make install
# rm fftw-3.3.9.tar.gz
# cd ..
# make
# ./test
# cd ~/
# printf $green"Installing Felix\n"$black
# cd $ED/..
# git clone https://www.github.com/ronandrevon/Felix.git
# # git branch continuousED; git checkout
# git checkout continousED
# #git pull origin continousED
# sudo apt-get install mpi libopenmpi-dev libblas-dev liblapack-dev
# cd src
# make
# cd ~/bin
# ln -s $pdir/src/felix.OPT64NGNU.d
# printf "export LD_LIBRARY_PATH=/usr/local/lib/" >>~/.bash_aliases
# printf $green"installing python multislice library\n"$black
# cd $ED
# pip3 install -e .
# printf $green"Installing and testing temsim\n"$black
# mkdir -p ~/Documents/git/ccp4/src/
# cd ~/Documents/git/ccp4/src/
# git clone https://www.github.com/ccp4/electron-diffraction.git
# cd $multislice/temsim
# mkdir -p ../bin/obj
# make
# cd ~
# printf $green"Testing multislice\n"$black
# cd $multislice/examples
# mkdir -p ../dat/test
# python3 test_base.py