File tree 1 file changed +13
-3
lines changed
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
93
93
if errorlevel 1 exit /b 1
94
94
set " NO_ARCH_PATH = %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % \noarch"
95
95
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
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
+
98
107
call conda index %PYTORCH_FINAL_PACKAGE_DIR%
99
108
if 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
101
111
if ERRORLEVEL 1 exit /b 1
102
112
call conda install -yq numpy
103
113
if ERRORLEVEL 1 exit /b 1
You can’t perform that action at this time.
0 commit comments