echo "CSST-DFS-API Installer" echo "==============================================" version="" if [ $# == 0 ] ; then version="" elif [ $# == 1 ] ; then version="@$1" else 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 CSST DFS API with Version:$version" echo "➑===============================================" echo " πŸ›° 1️⃣/5️⃣" pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git$version echo " πŸ›° 2️⃣/5️⃣" pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git$version echo " πŸ›° 3️⃣/5️⃣" pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git$version echo " πŸ›° 4️⃣/5️⃣" pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git$version echo " πŸ›° 5️⃣/5️⃣" pip install git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git$version echo "➑===============================================" echo "πŸ‡¨πŸ‡³πŸ‡¨πŸ‡³πŸ‡¨πŸ‡³πŸš€πŸš€πŸš€Done!"