Skip to content

Commit b2aeed9

Browse files
author
Vincent Moens
committed
Update (base update)
[ghstack-poisoned]
2 parents 04d8866 + efe9389 commit b2aeed9

File tree

107 files changed

+7079
-1620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+7079
-1620
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
pip install --upgrade setuptools
4+
5+
export TORCHRL_BUILD_VERSION=0.7.0
6+
7+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U

.github/scripts/pre-build-script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
pip install --upgrade setuptools
4+
5+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U

.github/scripts/td_script.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
#!/bin/bash
22

33
export TORCHRL_BUILD_VERSION=0.7.0
4+
pip install --upgrade setuptools
45

5-
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U
6+
# Check if ARCH is set to aarch64
7+
ARCH=${ARCH:-} # This sets ARCH to an empty string if it's not defined
8+
9+
if pip list | grep -q torch; then
10+
echo "Torch is installed."
11+
if [[ "$ARCH" == "aarch64" ]]; then
12+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
13+
else
14+
${CONDA_RUN} pip install tensordict-nightly -U
15+
fi
16+
elif [[ -n "${SMOKE_TEST_SCRIPT:-}" ]]; then
17+
${CONDA_RUN} ${PIP_INSTALL_TORCH}
18+
if [[ "$ARCH" == "aarch64" ]]; then
19+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
20+
else
21+
${CONDA_RUN} pip install tensordict-nightly -U
22+
fi
23+
else
24+
echo "Torch is not installed - tensordict will be installed later."
25+
fi

.github/scripts/version_script.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ if "%CU_VERSION%" == "xpu" call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat
3636

3737
set DISTUTILS_USE_SDK=1
3838

39+
:: Upgrade setuptools before installing PyTorch
40+
pip install --upgrade setuptools==72.1.0 || exit /b 1
41+
3942
set args=%1
4043
shift
4144
:start

.github/unittest/linux/scripts/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- pytest-instafail
1818
- pytest-rerunfailures
1919
- pytest-timeout
20+
- pytest-asyncio
2021
- expecttest
2122
- pyyaml
2223
- scipy

.github/unittest/linux_distributed/scripts/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytest-mock
1717
- pytest-instafail
1818
- pytest-rerunfailures
19+
- pytest-asyncio
1920
- expecttest
2021
- pyyaml
2122
- scipy

.github/unittest/linux_libs/scripts_ataridqn/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-instafail
1616
- pytest-rerunfailures
1717
- pytest-error-for-skips
18+
- pytest-asyncio
1819
- expecttest
1920
- pyyaml
2021
- scipy

.github/unittest/linux_libs/scripts_brax/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
1718
- pyyaml
1819
- scipy

.github/unittest/linux_libs/scripts_chess/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
1718
- pyyaml
1819
- scipy

.github/unittest/linux_libs/scripts_d4rl/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
1718
- pyyaml
1819
- scipy

0 commit comments

Comments
 (0)