csst-dfs-api-install.sh 1.18 KB
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
echo "CSST-DFS-API Installer"
echo "=============================================="

Wei Shoulin's avatar
install    
Wei Shoulin committed
4
version=""
Wei Shoulin's avatar
brick    
Wei Shoulin committed
5
user=""
Wei Shoulin's avatar
Wei Shoulin committed
6
7
8
9
10
11
12

pip uninstall csst-dfs-api-local -y
pip uninstall csst-dfs-api-cluster -y
pip uninstall csst-dfs-commons -y
pip uninstall csst-dfs-proto -y
pip uninstall csst-dfs-api -y

Wei Shoulin's avatar
em    
Wei Shoulin committed
13
14
echo "Installing CSST DFS API with Version:$version"
echo "➡==============================================="
Wei Shoulin's avatar
Wei Shoulin committed
15
echo " 🛰  1️⃣ /5️⃣"
Wei Shoulin's avatar
level2    
Wei Shoulin committed
16
pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-commons.git$version
Wei Shoulin's avatar
Wei Shoulin committed
17
echo " 🛰  2️⃣ /5️⃣"
Wei Shoulin's avatar
level2    
Wei Shoulin committed
18
pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-proto-py.git$version
Wei Shoulin's avatar
Wei Shoulin committed
19
echo " 🛰  3️⃣ /5️⃣"
Wei Shoulin's avatar
level2    
Wei Shoulin committed
20
pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-local.git$version
Wei Shoulin's avatar
Wei Shoulin committed
21
echo " 🛰  4️⃣ /5️⃣"
Wei Shoulin's avatar
level2    
Wei Shoulin committed
22
pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-cluster.git$version
Wei Shoulin's avatar
Wei Shoulin committed
23
echo " 🛰  5️⃣ /5️⃣"
Wei Shoulin's avatar
level2    
Wei Shoulin committed
24
pip install$user git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api.git$version
Wei Shoulin's avatar
Wei Shoulin committed
25
pip install -r https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api/-/raw/master/requirements.txt
Wei Shoulin's avatar
em    
Wei Shoulin committed
26
echo "➡==============================================="
Wei Shoulin's avatar
Wei Shoulin committed
27
echo "🇨🇳 🇨🇳 🇨🇳 🚀 🚀 🚀 Done!"