forked from pbelange/BBStudies
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstallme.sh
85 lines (64 loc) · 2.75 KB
/
installme.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
85
# installing conda
mkdir ./Executables
if [ "$(uname)" == "Darwin" ]; then
# Do something under Mac OS X platform
if [ "$(uname -m)" == "x86_64" ]; then
wget -O ./Executables/Miniconda3-latest.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
elif [ "$(uname -m)" == "arm64" ]; then
wget -O ./Executables/Miniconda3-latest.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
fi
elif [ "$(uname)" == "Linux" ]; then
# Do something under Linux platform
wget -O ./Executables/Miniconda3-latest.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
fi
bash ./Executables/Miniconda3-latest.sh -b -p ./Executables/miniconda -f
# create your own virtual environment in a new folder
source ./Executables/miniconda/bin/activate
python -m venv ./Executables/py_BB
source ./Executables/py_BB/bin/activate
# Install generic python packages
#========================================
pip install jupyterlab
pip install ipywidgets
pip install PyYAML
pip install pyarrow
pip install pandas
pip install matplotlib
pip install scipy
pip install ipympl
pip install ruamel.yaml
pip install rich
pip install lfm
pip install pynaff
pip install NAFFlib
# Adding the jupyter kernel to the list of kernels
python -m ipykernel install --user --name py_BB --display-name "py_BB"
#========================================
# Install CERN packages
#=========================================
pip install cpymad
git clone https://github.com/lhcopt/lhcmask.git ./Executables/py_BB/lhcmask
pip install -e ./Executables/py_BB/lhcmask
git clone https://github.com/xsuite/xobjects ./Executables/py_BB/xobjects
pip install -e ./Executables/py_BB/xobjects
git clone https://github.com/xsuite/xdeps ./Executables/py_BB/xdeps
pip install -e ./Executables/py_BB/xdeps
git clone https://github.com/xsuite/xpart ./Executables/py_BB/xpart
pip install -e ./Executables/py_BB/xpart
git clone https://github.com/xsuite/xtrack ./Executables/py_BB/xtrack
pip install -e ./Executables/py_BB/xtrack
git clone https://github.com/xsuite/xfields ./Executables/py_BB/xfields
pip install -e ./Executables/py_BB/xfields
git clone https://github.com/PyCOMPLETE/FillingPatterns.git ./Executables/py_BB/FillingPatterns
pip install -e ./Executables/py_BB/FillingPatterns
git clone https://github.com/xsuite/tree_maker.git ./Executables/py_BB/tree_maker
python -m pip install -e ./Executables/py_BB/tree_maker
git clone https://github.com/xsuite/xmask.git ./Executables/py_BB/xmask
python -m pip install -e ./Executables/py_BB/xmask
cd ./Executables/py_BB/xmask
git submodule init
git submodule update
cd ../../../
python -m pip install xsuite
xsuite-prebuild
#=========================================