Skip to content

Commit 6877444

Browse files
committed
Update
[ghstack-poisoned]
1 parent 87d2b4e commit 6877444

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/unittest/linux_libs/scripts_gym/run_all.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,22 @@ else
5959
uv pip install numpy==1.26
6060
fi
6161

62-
# 6. Install pybind11 (needed for building tensordict and torchrl C++ extensions)
63-
printf "* Installing pybind11\n"
64-
uv pip install "pybind11[global]"
62+
# 6. Install pybind11 and ninja (needed for building tensordict and torchrl C++ extensions)
63+
printf "* Installing pybind11 and ninja\n"
64+
uv pip install "pybind11[global]>=2.13" ninja
65+
66+
# Help CMake find pybind11 when building from source
67+
pybind11_DIR="$(python -m pybind11 --cmakedir)"
68+
export pybind11_DIR
6569

6670
# 7. Install tensordict
6771
printf "* Installing tensordict\n"
6872
if [[ "$RELEASE" == 0 ]]; then
6973
# Install tensordict dependencies (since we use --no-deps)
7074
uv pip install cloudpickle packaging importlib_metadata orjson "pyvers>=0.1.0,<0.2.0"
71-
uv pip install git+https://github.com/pytorch/tensordict.git --no-deps
75+
uv pip install --no-build-isolation --no-deps git+https://github.com/pytorch/tensordict.git
7276
else
73-
uv pip install tensordict
77+
uv pip install --no-deps tensordict
7478
fi
7579

7680
# Smoke test tensordict
@@ -79,7 +83,7 @@ python -c "import tensordict"
7983
# 8. Install torchrl
8084
printf "* Installing torchrl\n"
8185
git submodule sync && git submodule update --init --recursive
82-
uv pip install -e . --no-build-isolation
86+
uv pip install -e . --no-build-isolation --no-deps
8387

8488
# Smoke test torchrl
8589
python -c "import torchrl"

0 commit comments

Comments
 (0)