csst-dfs-api-install.sh 1.24 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
5
6
7
8
9
version=""
if [ $# == 0 ] ; then
version=""
elif [ $# == 1 ] ; then
version="@$1"
else
Wei Shoulin's avatar
Wei Shoulin committed
10
11
12
13
14
15
16
17
18
19
20
echo "USAGE: $0 [version]"
echo " e.g.: $0 v0.0.1"
exit 1;
fi

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
21
22
23
echo "Installing CSST DFS API with Version:$version"
echo "➡==============================================="
echo " 🛰  1️⃣/5️⃣"
Wei Shoulin's avatar
install    
Wei Shoulin committed
24
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git$version
Wei Shoulin's avatar
em    
Wei Shoulin committed
25
echo " 🛰  2️⃣/5️⃣"
Wei Shoulin's avatar
install    
Wei Shoulin committed
26
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git$version
Wei Shoulin's avatar
em    
Wei Shoulin committed
27
echo " 🛰  3️⃣/5️⃣"
Wei Shoulin's avatar
install    
Wei Shoulin committed
28
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git$version
Wei Shoulin's avatar
em    
Wei Shoulin committed
29
echo " 🛰  4️⃣/5️⃣"
Wei Shoulin's avatar
install    
Wei Shoulin committed
30
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git$version
Wei Shoulin's avatar
em    
Wei Shoulin committed
31
echo " 🛰  5️⃣/5️⃣"
Wei Shoulin's avatar
install    
Wei Shoulin committed
32
pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git$version
Wei Shoulin's avatar
em    
Wei Shoulin committed
33
34
echo "➡==============================================="
echo "🇨🇳🇨🇳🇨🇳🚀🚀🚀Done!"