@@ -20,6 +20,8 @@ export TF_CPP_MIN_LOG_LEVEL=0
2020export BATCHED_PIPE_TIMEOUT=60
2121export TD_GET_DEFAULTS_TO_NONE=1
2222export OMNI_KIT_ACCEPT_EULA=yes
23+ export PIP_DISABLE_PIP_VERSION_CHECK=1
24+ export PYTHONNOUSERSITE=1
2325
2426nvidia-smi
2527
@@ -52,14 +54,31 @@ export LD_LIBRARY_PATH=${lib_dir}:${LD_LIBRARY_PATH:-}
5254# Ensure libexpat is at the correct version BEFORE installing other packages
5355conda install -c conda-forge expat -y
5456
57+ # Force the loader to pick conda's libexpat over the system one
58+ if [ -f " ${lib_dir} /libexpat.so.1" ]; then
59+ export LD_PRELOAD=" ${lib_dir} /libexpat.so.1:${LD_PRELOAD:- } "
60+ elif [ -f " ${lib_dir} /libexpat.so" ]; then
61+ export LD_PRELOAD=" ${lib_dir} /libexpat.so:${LD_PRELOAD:- } "
62+ fi
63+
64+ # Quick diagnostic to confirm which expat is resolved by pyexpat
65+ PYEXPAT_SO=$( python - << 'PY '
66+ import importlib.util
67+ spec = importlib.util.find_spec('pyexpat')
68+ print(spec.origin)
69+ PY
70+ )
71+ echo " * pyexpat module: ${PYEXPAT_SO} "
72+ ldd " ${PYEXPAT_SO} " | grep -i expat || true
73+
5574# Reinstall Python to ensure it links against the correct expat
5675conda install --force-reinstall python=3.10 -y
5776
5877# Pin pytorch to 2.5.1 for IsaacLab
5978conda install pytorch==2.5.1 torchvision==0.20.1 pytorch-cuda=12.4 -c pytorch -c nvidia -y
6079
61- python -m pip install --upgrade pip
62- python -m pip install ' isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com
80+ python -m pip install --upgrade pip --disable-pip-version-check
81+ python -m pip install ' isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com --disable-pip-version-check
6382conda install conda-forge::" cmake>3.22" -y
6483
6584git clone https://github.com/isaac-sim/IsaacLab.git
@@ -70,21 +89,21 @@ cd ../
7089# install tensordict
7190if [[ " $RELEASE " == 0 ]]; then
7291 conda install " anaconda::cmake>=3.22" -y
73- python -m pip install " pybind11[global]"
74- python -m pip install git+https://github.com/pytorch/tensordict.git
92+ python -m pip install " pybind11[global]" --disable-pip-version-check
93+ python -m pip install git+https://github.com/pytorch/tensordict.git --disable-pip-version-check
7594else
76- python -m pip install tensordict
95+ python -m pip install tensordict --disable-pip-version-check
7796fi
7897
7998# smoke test
8099python -c " import tensordict"
81100
82101printf " * Installing torchrl\n"
83- python -m pip install -e . --no-build-isolation
102+ python -m pip install -e . --no-build-isolation --disable-pip-version-check
84103python -c " import torchrl"
85104
86105# Install pytest
87- python -m pip install pytest pytest-cov pytest-mock pytest-instafail pytest-rerunfailures pytest-error-for-skips pytest-asyncio
106+ python -m pip install pytest pytest-cov pytest-mock pytest-instafail pytest-rerunfailures pytest-error-for-skips pytest-asyncio --disable-pip-version-check
88107
89108# Run tests
90109python -m pytest test/test_libs.py -k isaac -s
0 commit comments