File tree Expand file tree Collapse file tree
.github/unittest/linux_libs/scripts_gym Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 uv pip install numpy==1.26
6060fi
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
6771printf " * Installing tensordict\n"
6872if [[ " $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
7276else
73- uv pip install tensordict
77+ uv pip install --no-deps tensordict
7478fi
7579
7680# Smoke test tensordict
@@ -79,7 +83,7 @@ python -c "import tensordict"
7983# 8. Install torchrl
8084printf " * Installing torchrl\n"
8185git 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
8589python -c " import torchrl"
You can’t perform that action at this time.
0 commit comments