Skip to content

Commit 695b422

Browse files
author
Vincent Moens
committed
Update (base update)
[ghstack-poisoned]
1 parent d170231 commit 695b422

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
yum update gcc
4+
yum update libstdc++
5+
6+
${CONDA_RUN} pip install cmake pybind11

.github/scripts/version_script.bat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ echo TENSORDICT_BUILD_VERSION is set to %TENSORDICT_BUILD_VERSION%
44

55
@echo on
66

7-
pip install cmake pybind11
8-
97
set VC_VERSION_LOWER=17
108
set VC_VERSION_UPPER=18
119
if "%VC_YEAR%" == "2019" (

.github/scripts/version_script.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#!/bin/bash
22

33
export TENSORDICT_BUILD_VERSION=0.7.0
4-
5-
pip install cmake pybind11

.github/scripts/win-pre-script.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
:: Check if CONDA_RUN is set, if not, set it to a default value
3+
if "%CONDA_RUN%"=="" (
4+
echo CONDA_RUN is not set. Please activate your conda environment or set CONDA_RUN.
5+
exit /b 1
6+
)
7+
8+
:: Run the pip install command
9+
%CONDA_RUN% pip install cmake pybind11
10+
11+
:: Check if the installation was successful
12+
if errorlevel 1 (
13+
echo Failed to install cmake and pybind11.
14+
exit /b 1
15+
) else (
16+
echo Successfully installed cmake and pybind11.
17+
)

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
include:
3434
- repository: pytorch/tensordict
3535
smoke-test-script: test/smoke_test.py
36+
pre-script: .github/scripts/linux-pre-script.sh
3637
post-script: .github/scripts/linux-post-script.sh
3738
package-name: tensordict
3839
name: pytorch/tensordict

.github/workflows/build-wheels-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
matrix:
3333
include:
3434
- repository: pytorch/tensordict
35-
pre-script: ""
35+
pre-script: .github/scripts/win-pre-script.bat
3636
env-script: .github/scripts/version_script.bat
3737
post-script: "python packaging/wheel/relocate.py"
3838
smoke-test-script: test/smoke_test.py

0 commit comments

Comments
 (0)