This repository was archived by the owner on Aug 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,21 @@ call %CONDA_HOME%\condabin\activate.bat testenv
9393if errorlevel 1 exit /b 1
9494set " NO_ARCH_PATH = %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % \noarch"
9595mkdir %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
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+ if errorlevel 1 exit /b 1
106+
98107call conda index %PYTORCH_FINAL_PACKAGE_DIR%
99108if errorlevel 1 exit /b 1
100- call conda install -yq -c " file:///%PYTORCH_FINAL_PACKAGE_DIR% " pytorch== %PYTORCH_BUILD_VERSION% -c pytorch -c numba/label/dev -c nvidia
109+
110+ call conda install -yq -c " file:///%PYTORCH_FINAL_PACKAGE_DIR% " pytorch== %PYTORCH_VERSION% -c pytorch -c numba/label/dev -c nvidia
101111if ERRORLEVEL 1 exit /b 1
102112call conda install -yq numpy
103113if ERRORLEVEL 1 exit /b 1
You can’t perform that action at this time.
0 commit comments