-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.sh
More file actions
63 lines (42 loc) · 2.07 KB
/
setup.sh
File metadata and controls
63 lines (42 loc) · 2.07 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
# check if the program is already setup
if [[ ${PHARLAP_HOME} = "" ]]; then
echo "First Time Setup"
echo "Please enter the filepath of the project"
echo "Example - /home/devindiehl/Pylap_project"
read x
echo ${x}
export PHARLAP_HOME="${x}/pharlap_4.5.1"
echo "export PHARLAP_HOME=${x}/pharlap_4.5.1" >> ~/.bashrc
if [[ -d "${x}/PyLap" ]] ;
then
export PYTHONPATH="${x}/PyLap"
echo "export PYTHONPATH=${x}/PyLap" >> ~/.bashrc
echo "Pylap filepath found"
elif [[ -d "${x}/PyLap-main" ]] ;
then
export PYTHONPATH="${x}/PyLap-main"
echo "export PYTHONPATH=${x}/PyLap-main" >> ~/.bashrc
echo "Pylap filepath found"
else
echo "Pylap filepath not found"
fi
export LD_LIBRARY="${x}/l_comp_lib_2020.4.304_comp.for_redist/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin"
echo "export LD_LIBRARY=${x}/l_comp_lib_2020.4.304_comp.for_redist/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin" >> ~/.bashrc
export DIR_MODELS_REF_DAT="${x}/pharlap_4.5.1/dat"
echo "export DIR_MODELS_REF_DAT=${x}/pharlap_4.5.1/dat">> ~/.bashrc
source /home/$USER/bin/compilervars.sh intel64
echo "source /home/$USER/bin/compilervars.sh intel64" >> ~/.bashrc
# echo "python3 setup.py install --user" >> ~/.bashrc
# export PHARLAP_HOME="/home/devindiehl/Pylap_project/PHARLAP/pharlap_4.5.1"
# export PYTHONPATH="/home/devindiehl/Pylap_project/PyLap"
# export LD_LIBRARY="/home/devindiehl/Pylap_project/l_comp_lib_2020.4.304_comp.for_redist/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin"
# export DIR_MODELS_REF_DAT="/home/devindiehl/Pylap_project/PHARLAP/pharlap_4.5.1/dat"
sudo apt-get install python3-tk python3-pil python3-pil.imagetk libqt5gui5 python3-pyqt5
sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
sudo apt-get install python3-pip
pip3 install matplotlib numpy scipy qtpy
python3 setup.py install --user
else
echo "Pylap is already setup"
echo "if you wish to redo the setup enter the command 'nano .bashrc' in the home directory, delete the filepaths and then run the setup.sh script again"
fi