csst-dfs-api-install.sh 1.09 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
21
22
23
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

echo "Installing.....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
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
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
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
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
Wei Shoulin committed
33
34
echo "=============================================="
echo "Done!"