Skip to content

Commit 0851017

Browse files
committed
anotehr try
1 parent a863b08 commit 0851017

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

windows/internal/smoke_test.bat

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,18 @@ call %CONDA_HOME%\condabin\activate.bat testenv
9393
if errorlevel 1 exit /b 1
9494
set "NO_ARCH_PATH=%PYTORCH_FINAL_PACKAGE_DIR:/=\%\noarch"
9595
mkdir %NO_ARCH_PATH%
96-
for /F "delims=" %%i in ('where /R "%PYTORCH_FINAL_PACKAGE_DIR:/=\%" *') do xcopy "%%i" %NO_ARCH_PATH% /Y
97-
if ERRORLEVEL 1 exit /b 1
98-
call conda index %PYTORCH_FINAL_PACKAGE_DIR%
99-
if errorlevel 1 exit /b 1
100-
echo "before conda install"
101-
call conda install -yq -c "file:///%PYTORCH_FINAL_PACKAGE_DIR%" pytorch==%PYTORCH_BUILD_VERSION% -c pytorch -c numba/label/dev -c nvidia
96+
for /F "delims=" %%i in ('where /R "%PYTORCH_FINAL_PACKAGE_DIR:/=\%" *') do (
97+
echo Processing file: %%i
98+
:: Extract the version number from the file name
99+
for /f "tokens=2 delims=-" %%a in ("%%~nxi") do (
100+
set "PYTORCH_VERSION=%%a"
101+
echo Version set to: %%a
102+
)
103+
xcopy "%%i" %NO_ARCH_PATH% /Y
104+
)
105+
106+
echo pytorch Version: %PYTORCH_VERSION%
107+
call conda install -yq -c "file:///%PYTORCH_FINAL_PACKAGE_DIR%" pytorch==%PYTORCH_VERSION% -c pytorch -c numba/label/dev -c nvidia
102108
echo "after conda install"
103109
echo on
104110
echo "another test"

0 commit comments

Comments
 (0)