-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathinstall.sh
More file actions
31 lines (22 loc) · 911 Bytes
/
install.sh
File metadata and controls
31 lines (22 loc) · 911 Bytes
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
#!/bin/bash
set -e
STAGE=$1 # "basic" | "extra" | "all"
STAGE=${STAGE:-all}
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
source "$SCRIPT_DIR/install/_utils.sh"
git config --global http.postBuffer 524288000
log_info "===== Starting installation stage: $STAGE ====="
if [[ "$STAGE" == "basic" || "$STAGE" == "all" ]]; then
bash "$SCRIPT_DIR/install/install_basic.sh"
fi
if [[ "$STAGE" == "extra" || "$STAGE" == "all" ]]; then
# Patch submodule .gitignore to ignore __pycache__, if submodule exists
PANO2ROOM_PATH="$SCRIPT_DIR/thirdparty/pano2room"
if [ -d "$PANO2ROOM_PATH" ]; then
echo "__pycache__/" > "$PANO2ROOM_PATH/.gitignore"
log_info "Added .gitignore to ignore __pycache__ in $PANO2ROOM_PATH"
fi
bash "$SCRIPT_DIR/install/install_extra.sh"
fi
pip install triton==2.1.0 numpy==1.26.4
log_info "===== Installation completed successfully. ====="