@@ -49,17 +49,26 @@ conda deactivate && conda activate "${env_dir}"
4949pip3 install " cython<3"
5050conda install -c anaconda cython=" <3.0.0" -y
5151
52-
53- # 3. Install git LFS
54- mkdir git_lfs
55- wget https://github.com/git-lfs/git-lfs/releases/download/v2.9.0/git-lfs-linux-amd64-v2.9.0.tar.gz --directory-prefix git_lfs
56- cd git_lfs
57- tar -xf git-lfs-linux-amd64-v2.9.0.tar.gz
58- chmod 755 install.sh
59- ./install.sh
60- cd ..
52+ # 3. Install git LFS (newer version that supports git lfs prune -f)
53+ mkdir -p git_lfs_tmp
54+ cd git_lfs_tmp
55+ wget https://github.com/git-lfs/git-lfs/releases/download/v3.4.0/git-lfs-linux-amd64-v3.4.0.tar.gz
56+ tar -xf git-lfs-linux-amd64-v3.4.0.tar.gz
57+ # The binary is in git-lfs-3.4.0/git-lfs
58+ chmod 755 git-lfs-3.4.0/git-lfs
59+ # Install to /usr/local/bin so it's available system-wide
60+ cp git-lfs-3.4.0/git-lfs /usr/local/bin/
61+ cd " ${root_dir} "
6162git lfs install
6263
64+ # Configure git-lfs for better performance (higher timeouts, more concurrent transfers)
65+ git config --global lfs.activitytimeout 600
66+ git config --global lfs.dialtimeout 60
67+ git config --global lfs.tlstimeout 60
68+ git config --global lfs.concurrenttransfers 8
69+ git config --global http.version HTTP/1.1
70+ rm -rf git_lfs_tmp
71+
6372# 4. Install Conda dependencies
6473printf " * Installing dependencies (except PyTorch)\n"
6574echo " - python=${PYTHON_VERSION} " >> " ${this_dir} /environment.yml"
@@ -69,7 +78,37 @@ pip install pip --upgrade
6978
7079conda env update --file " ${this_dir} /environment.yml" --prune
7180
72- conda install habitat-sim withbullet headless -c conda-forge -c aihabitat -y
81+ # 5. Install habitat-sim from source (conda packages don't support Python 3.10+)
82+ # Install build dependencies
83+ pip3 install ninja numpy
84+
85+ # Clone and build habitat-sim from source
86+ cd " ${root_dir} "
87+ git clone --branch stable https://github.com/facebookresearch/habitat-sim.git --recursive
88+ cd habitat-sim
89+
90+ # Build with headless (EGL) and bullet physics support
91+ # Ensure system cmake is used (pip cmake 4.x is incompatible with habitat-sim's CMake files)
92+ # Put /usr/bin at the front of PATH to prefer system cmake over any pip-installed cmake
93+ export PATH=" /usr/bin:$PATH "
94+ # Also set CMAKE_EXECUTABLE to explicitly use system cmake
95+ export CMAKE_EXECUTABLE=/usr/bin/cmake
96+ pip3 install . --no-build-isolation
97+
98+ cd " ${root_dir} "
99+
100+ # 6. Download required Habitat test datasets
101+ # Use datasets_download with git-lfs configured for better performance
102+ echo " $( date) : Starting dataset downloads..."
103+
104+ # Download all rearrange task assets (includes replica_cad, ycb, robots, and episode data)
105+ python -m habitat_sim.utils.datasets_download --uids rearrange_task_assets --data-path data/ --no-prune
106+
107+ echo " $( date) : Dataset downloads complete!"
108+ echo " Total data size:"
109+ du -sh data/
110+
111+ # Install habitat-lab
73112git clone https://github.com/facebookresearch/habitat-lab.git
74113cd habitat-lab
75114pip3 install -e habitat-lab
0 commit comments